File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
XEngine_Source/XEngine_ModulePlugin Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ SHAREFLAG = -shared
33SHAREDLL = so
44RELEASE = 0
55UNICODE = 0
6+ FILECENTOS =/etc/redhat-release
67INCLUDE = -I ./
78LOADBIN = -L /usr/local/lib/XEngine_Release/XEngine_BaseLib
89LIB = -lXEngine_BaseLib -llua5.3
@@ -27,10 +28,10 @@ FLAGS = -c
2728DEBUG = -g
2829endif
2930
30- ifeq ($(UNICODE ) ,1 )
31- UNICODE = -D _UNICODE
31+ ifeq ($(FILECENTOS ) , $( wildcard $( FILECENTOS ) ) )
32+ UNICODE = -D _CENTOS
3233else
33- UNICODE =
34+ UNICODE = -D _UBUNTU
3435endif
3536
3637
Original file line number Diff line number Diff line change 1414#include < lua.hpp>
1515#else
1616#include < dlfcn.h>
17+
18+ #ifdef __linux__
19+ #ifdef _CENTOS
20+ #include < lua/lua.hpp>
21+ #else
1722#include < lua5.3/lua.hpp>
1823#endif
24+ #else
25+ #include < lua/lua.hpp>
26+ #endif
27+ #endif
28+
1929#endif // PCH_H
30+
2031#include < stdio.h>
2132#include < stdlib.h>
2233#include < string.h>
You can’t perform that action at this time.
0 commit comments