Browse Source

Fix compilation on windows.

aghl
Night Owl 6 years ago
parent
commit
ebedc4a781
  1. 6
      cl_dll/CMakeLists.txt
  2. 2
      cl_dll/aghl/agbase64.cpp

6
cl_dll/CMakeLists.txt

@ -94,7 +94,7 @@ set (CLDLL_SOURCES @@ -94,7 +94,7 @@ set (CLDLL_SOURCES
message.cpp
overview.cpp
parsemsg.cpp
# aghl/agbase64.cpp
aghl/agbase64.cpp
aghl/agcrc32.cpp
aghl/agcrc32enforcer.cpp
# aghl/agdownload.cpp
@ -164,6 +164,10 @@ if (GOLDSOURCE_SUPPORT) @@ -164,6 +164,10 @@ if (GOLDSOURCE_SUPPORT)
target_link_libraries( ${CLDLL_LIBRARY} ${CMAKE_DL_LIBS} )
endif()
if (WIN32)
target_link_libraries( ${CLDLL_LIBRARY} version.lib )
endif()
set_target_properties (${CLDLL_LIBRARY} PROPERTIES
POSITION_INDEPENDENT_CODE 1)

2
cl_dll/aghl/agbase64.cpp

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
//++ BulliT
#ifdef _WIN32
#include "agbase64.h"
#include <string.h>
#include <assert.h>
@ -149,3 +150,4 @@ static char* s_szBadCodes[] = @@ -149,3 +150,4 @@ static char* s_szBadCodes[] =
OutputDebugString(szTest);
}
*/
#endif // _WIN32

Loading…
Cancel
Save