We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112ee06 commit 099d311Copy full SHA for 099d311
2 files changed
include/gamespy/gsplatform.h
@@ -63,7 +63,9 @@
63
64
// WIN32
65
#elif defined(_WIN32)
66
+#ifndef WIN32_LEAN_AND_MEAN
67
#define WIN32_LEAN_AND_MEAN
68
+#endif
69
#include <windows.h>
70
#include <limits.h>
71
#include <time.h>
src/CMakeLists.txt
@@ -79,6 +79,13 @@ if(BUILD_SHARED_LIBS)
79
set_target_properties(gamespy PROPERTIES ARCHIVE_OUTPUT_NAME gamespy_import WINDOWS_EXPORT_ALL_SYMBOLS ON)
80
endif()
81
82
+# Handle including sockets library headers for consumers.
83
+if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
84
+ if(GS_WINSOCK2)
85
+ target_compile_definitions(gamespy INTERFACE GSI_WINSOCK2)
86
+ endif()
87
+endif()
88
+
89
if(GS_BUILD_TESTS)
90
add_executable(chattest chat/chatc/chatc.c)
91
target_link_libraries(chattest gamespy)
0 commit comments