Browse Source

Don't export function for static lib

Eugene Pogrebnyak 4 years ago
parent
commit
86f062fcff
2 changed files with 1 additions and 1 deletions
  1. 1 0
      CMakeLists.txt
  2. 0 1
      test/library.c

+ 1 - 0
CMakeLists.txt

@@ -18,6 +18,7 @@ if (ENET_STATIC)
 endif()
 
 if (ENET_SHARED)
+    add_definitions(-DENET_DLL)
     add_library(enet SHARED test/library.c)
 
     if (WIN32)

+ 0 - 1
test/library.c

@@ -1,4 +1,3 @@
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #define ENET_IMPLEMENTATION
-#define ENET_DLL
 #include "enet.h"