瀏覽代碼

fixing static build (#5713)

Nathan V. Morrical 1 年之前
父節點
當前提交
09b981d943
共有 1 個文件被更改,包括 3 次插入1 次删除
  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