Browse Source

fixing static build (#5713)

Nathan V. Morrical 11 months ago
parent
commit
09b981d943
1 changed files with 3 additions and 1 deletions
  1. 3 1
      contrib/poly2tri/poly2tri/common/dll_symbol.h

+ 3 - 1
contrib/poly2tri/poly2tri/common/dll_symbol.h

@@ -53,7 +53,9 @@
 #    define P2T_DLL_SYMBOL
 #  elif defined(P2T_SHARED_EXPORTS)
 #    define P2T_DLL_SYMBOL P2T_COMPILER_DLLEXPORT
-#  else
+#  elif defined(BUILD_SHARED_LIBS)
 #    define P2T_DLL_SYMBOL P2T_COMPILER_DLLIMPORT
+#  else
+#    define P2T_DLL_SYMBOL
 #  endif
 #endif