mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 02:34:59 +03:00
Include headers properly
This commit is contained in:
@ -5,28 +5,14 @@
|
||||
// vpnserver.c
|
||||
// VPN Server service program
|
||||
|
||||
#include <GlobalConst.h>
|
||||
|
||||
#define VPN_EXE
|
||||
|
||||
#ifdef WIN32
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <wincrypt.h>
|
||||
#include <wininet.h>
|
||||
#include <shlobj.h>
|
||||
#include <commctrl.h>
|
||||
#include <Dbghelp.h>
|
||||
#include "../PenCore/resource.h"
|
||||
#endif // WIN32
|
||||
#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/Server.h"
|
||||
|
||||
#include "Mayaqua/Mayaqua.h"
|
||||
#include "Mayaqua/Microsoft.h"
|
||||
#include "Mayaqua/Unix.h"
|
||||
#include "Mayaqua/Win32.h"
|
||||
|
||||
// Process starting function
|
||||
void StartProcess()
|
||||
@ -51,10 +37,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
InitProcessCallOnce();
|
||||
|
||||
VgUseStaticLink();
|
||||
|
||||
#ifdef OS_WIN32
|
||||
|
||||
return MsService(GC_SVC_NAME_VPNSERVER, StartProcess, StopProcess, ICO_CASCADE, argv[0]);
|
||||
#else // OS_WIN32
|
||||
return UnixService(argc, argv, "vpnserver", StartProcess, StopProcess);
|
||||
|
Reference in New Issue
Block a user