File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ if(TARGET_OS STREQUAL "windows")
59
59
add_compile_definitions (${target} PRIVATE _WIN32_WINNT=0x0600 ) # Minimum OS version (old macro, both must be defined)
60
60
add_compile_definitions (${target} PRIVATE UNICODE ) # Windows headers
61
61
add_compile_definitions (${target} PRIVATE _UNICODE ) # C-runtime
62
-
63
- # twbl specific hack for #ifdef WIN32 checks
64
- # to avoid detect.h on windows systems that dont define WIN32 like mingw
65
- add_compile_definitions (${target} PRIVATE WIN32 )
66
62
endif ()
67
63
68
64
set (LINK_FLAGS_PLATFORM "" )
Original file line number Diff line number Diff line change 1
1
// TODO: windows https://github.com/dlfcn-win32/dlfcn-win32
2
- #ifdef WIN32
2
+
3
+ #include < twbl/teeworlds/base/detect.h>
4
+
5
+ #ifdef CONF_FAMILY_WINDOWS
3
6
4
7
int main () { return 0 ; }
5
8
Original file line number Diff line number Diff line change 1
1
#include < cstdio>
2
2
#include < cstdlib>
3
3
4
- #ifdef WIN32
4
+ #include < twbl/teeworlds/base/detect.h>
5
+
6
+ #ifdef CONF_FAMILY_WINDOWS
5
7
// TODO: windows api
6
8
#else
7
9
#include < dlfcn.h>
@@ -59,7 +61,7 @@ void *CHotreloader::LoadTick(FTwbl_BotTick *ppfnBotTick)
59
61
60
62
UnloadTick ();
61
63
62
- #ifdef WIN32
64
+ #ifdef CONF_FAMILY_WINDOWS
63
65
return nullptr ;
64
66
#else
65
67
char aTickfunc[512 ];
@@ -106,7 +108,7 @@ void *CHotreloader::LoadTick(FTwbl_BotTick *ppfnBotTick)
106
108
107
109
int CHotreloader::CloseHandle (void *pHandle)
108
110
{
109
- #ifdef WIN32
111
+ #ifdef CONF_FAMILY_WINDOWS
110
112
return 0 ;
111
113
#else
112
114
return dlclose (pHandle);
You can’t perform that action at this time.
0 commit comments