1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-19 17:59:19 +03:00

Include headers properly

This commit is contained in:
Davide Beatrici
2021-04-05 04:48:25 +02:00
parent 46b54f00be
commit a6ba9b8788
190 changed files with 1885 additions and 1850 deletions

View File

@ -4,7 +4,6 @@ set(COMPONENT_INTERNAL_NAME "vpnclient")
if(WIN32)
add_executable(vpnclient WIN32
"vpncsvc.c"
"vpncsvc.h"
"${TOP_DIRECTORY}/src/BuildFiles/Manifests/common.manifest"
)
@ -20,7 +19,7 @@ if(WIN32)
configure_file("${TOP_DIRECTORY}/src/BuildFiles/VerScript/ver.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
target_sources(vpnclient PRIVATE "vpnclient.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
else()
add_executable(vpnclient vpncsvc.c vpncsvc.h)
add_executable(vpnclient "vpncsvc.c")
endif()
set_target_properties(vpnclient

View File

@ -5,18 +5,14 @@
// vpncsvc.c
// VPN Client Service Program
#include <GlobalConst.h>
#define VPN_EXE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <stdarg.h>
#include <time.h>
#include <Mayaqua/Mayaqua.h>
#include <Cedar/Cedar.h>
#include "Cedar/Client.h"
#include "Mayaqua/Mayaqua.h"
#include "Mayaqua/Microsoft.h"
#include "Mayaqua/Unix.h"
#include "Mayaqua/Win32.h"
// Process start function
void StartProcess()

View File

@ -1,18 +0,0 @@
// SoftEther VPN Source Code - Developer Edition Master Branch
// Cedar Communication Module
// vpncsvc.h
// Header of vpncsvc.c
#ifndef VPNCSVC_H
#define VPNCSVC_H
// Function prototype
int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, char *CmdLine, int CmdShow);
void StartProcess();
void StopProcess();
#endif // VPNCSVC_H