Explorar o código

fixing static build (#5713)

Nathan V. Morrical hai 1 ano
pai
achega
09b981d943
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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