File tree Expand file tree Collapse file tree 7 files changed +14
-17
lines changed
Expand file tree Collapse file tree 7 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 77#ifndef PCH_H
88#define PCH_H
99
10- #ifdef _WINDOWS
10+ #ifdef _MSC_BUILD
1111// 添加要在此处预编译的标头
1212#include " framework.h"
1313#include < tchar.h>
@@ -59,7 +59,7 @@ using namespace std;
5959extern bool APIHelp_IsErrorOccur;
6060extern XLONG APIHelp_dwErrorCode;
6161
62- #ifdef _WINDOWS
62+ #ifdef _MSC_BUILD
6363#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib")
6464#pragma comment(lib,"XEngine_Core/XEngine_OPenSsl")
6565#pragma comment(lib,"XEngine_RfcComponents/RfcComponents_HttpProtocol")
Original file line number Diff line number Diff line change 77#ifndef PCH_H
88#define PCH_H
99
10- #ifdef _WINDOWS
10+ #ifdef _MSC_BUILD
1111// 添加要在此处预编译的标头
1212#include " framework.h"
1313#include < tchar.h>
@@ -40,7 +40,7 @@ using namespace std;
4040extern bool Config_IsErrorOccur;
4141extern XLONG Config_dwErrorCode;
4242
43- #ifdef _WINDOWS
43+ #ifdef _MSC_BUILD
4444#ifdef _DEBUG
4545#ifdef _WIN64
4646#pragma comment(lib,"../x64/Debug/jsoncpp")
Original file line number Diff line number Diff line change 77#ifndef PCH_H
88#define PCH_H
99
10- #ifdef _WINDOWS
10+ #ifdef _MSC_BUILD
1111// 添加要在此处预编译的标头
1212#include " framework.h"
1313#include < conio.h>
@@ -55,7 +55,7 @@ using namespace std;
5555extern bool Database_IsErrorOccur;
5656extern XLONG Database_dwErrorCode;
5757
58- #ifdef _WINDOWS
58+ #ifdef _MSC_BUILD
5959#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib.lib")
6060#pragma comment(lib,"XEngine_HelpComponents/HelpComponents_DataBase.lib")
6161#endif
Original file line number Diff line number Diff line change 77#ifndef PCH_H
88#define PCH_H
99
10- #ifdef _WINDOWS
10+ #ifdef _MSC_BUILD
1111// 添加要在此处预编译的标头
1212#include " framework.h"
1313#include < stdlib.h>
@@ -54,7 +54,7 @@ using namespace std;
5454extern bool Protocol_IsErrorOccur;
5555extern XLONG Protocol_dwErrorCode;
5656
57- #ifdef _WINDOWS
57+ #ifdef _MSC_BUILD
5858#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib.lib")
5959#ifdef _DEBUG
6060#ifdef _WIN64
Original file line number Diff line number Diff line change 77#ifndef PCH_H
88#define PCH_H
99
10- #ifdef _WINDOWS
10+ #ifdef _MSC_BUILD
1111// 添加要在此处预编译的标头
1212#include " framework.h"
1313#include < tchar.h>
@@ -49,6 +49,6 @@ using namespace std;
4949extern bool Session_IsErrorOccur;
5050extern XLONG Session_dwErrorCode;
5151
52- #ifdef _WINDOWS
52+ #ifdef _MSC_BUILD
5353#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib.lib")
5454#endif
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ extern XENGINE_LBCONFIG st_LoadbalanceCfg;
105105#include " Storage_APPTask/Storage_TaskP2p.h"
106106#include " Storage_APPTask/Storage_TaskManage.h"
107107
108- #ifdef _WINDOWS
108+ #ifdef _MSC_BUILD
109109#pragma comment(lib,"Ws2_32.lib")
110110#pragma comment(lib,"XEngine_BaseLib/XEngine_BaseLib.lib")
111111#pragma comment(lib,"XEngine_BaseLib/XEngine_Algorithm.lib")
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ void ServiceApp_Stop(int signo)
7474}
7575static int ServiceApp_Deamon (int wait)
7676{
77- #ifndef _WINDOWS
77+ #ifndef _MSC_BUILD
7878 pid_t pid = 0 ;
7979 int status;
8080 pid = fork ();
@@ -105,10 +105,7 @@ static int ServiceApp_Deamon(int wait)
105105
106106int main (int argc, char ** argv)
107107{
108- #if (XENGINE_VERSION_KERNEL < 7) && (XENGINE_VERSION_MAIN < 24)
109- printf (" XEngine版本过低,无法继续\n " );
110- #endif
111- #ifdef _WINDOWS
108+ #ifdef _MSC_BUILD
112109 WSADATA st_WSAData;
113110 WSAStartup (MAKEWORD (2 , 2 ), &st_WSAData);
114111#endif
@@ -466,7 +463,7 @@ int main(int argc, char** argv)
466463 pSTDThread->join ();
467464 }
468465 }
469- #ifdef _WINDOWS
466+ #ifdef _MSC_BUILD
470467 WSACleanup ();
471468#endif
472469 return 0 ;
You can’t perform that action at this time.
0 commit comments