mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-25 22:24:16 +00:00
Merge pull request #65 from x6herbius/upstream-master
Made library functions hidden by default on Mac/Linux
This commit is contained in:
commit
4d338885ba
@ -31,6 +31,7 @@ add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL)
|
|||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
||||||
add_compile_options(-Wno-write-strings) # GCC/Clang flag
|
add_compile_options(-Wno-write-strings) # GCC/Clang flag
|
||||||
|
add_compile_options(-fvisibility=hidden) # GCC/Clang flag
|
||||||
add_definitions(-D_LINUX -DLINUX) # It seems enough for all non-Win32 systems
|
add_definitions(-D_LINUX -DLINUX) # It seems enough for all non-Win32 systems
|
||||||
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp)
|
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp)
|
||||||
if(NOT MINGW)
|
if(NOT MINGW)
|
||||||
|
@ -30,6 +30,7 @@ add_definitions(-DCLIENT_WEAPONS)
|
|||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
||||||
add_compile_options(-Wno-invalid-offsetof) # GCC/Clang flag
|
add_compile_options(-Wno-invalid-offsetof) # GCC/Clang flag
|
||||||
|
add_compile_options(-fvisibility=hidden) # GCC/Clang flag
|
||||||
add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems
|
add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems
|
||||||
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf )
|
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf )
|
||||||
else()
|
else()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user