Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/gamespy/gsplatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@

// WIN32
#elif defined(_WIN32)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <limits.h>
#include <time.h>
Expand Down
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ if(BUILD_SHARED_LIBS)
set_target_properties(gamespy PROPERTIES ARCHIVE_OUTPUT_NAME gamespy_import WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

# Handle including sockets library headers for consumers.
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
if(GS_WINSOCK2)
target_compile_definitions(gamespy INTERFACE GSI_WINSOCK2)
endif()
endif()

if(GS_BUILD_TESTS)
add_executable(chattest chat/chatc/chatc.c)
target_link_libraries(chattest gamespy)
Expand Down