mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:29:00 +08:00
763a397e30
* [netgen] add new port * v db * fix config path for linux * v db * add supports * figure out CI error * fix the path correctly * v db * fix install layout * v db * more cleanup * v db * fix cmake usage and missing filesystem include * v db * disable parallel configure * v db * update to latest tag * v db * control cmake install loc * v db * more install control for mac * v db * more mac fixes * v db * remove old version * replace cgns patch * v db --------- Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
diff --git a/libsrc/core/ngcore_api.hpp b/libsrc/core/ngcore_api.hpp
|
|
index e66e9b8..4ecaa05 100644
|
|
--- a/libsrc/core/ngcore_api.hpp
|
|
+++ b/libsrc/core/ngcore_api.hpp
|
|
@@ -35,8 +35,13 @@
|
|
|
|
|
|
#ifdef WIN32
|
|
+#if !defined(NGSTATIC_BUILD)
|
|
#define NGCORE_API_EXPORT __declspec(dllexport)
|
|
#define NGCORE_API_IMPORT __declspec(dllimport)
|
|
+#else
|
|
+ #define NGCORE_API_EXPORT
|
|
+ #define NGCORE_API_IMPORT
|
|
+#endif
|
|
#else
|
|
#define NGCORE_API_EXPORT __attribute__((visibility("default")))
|
|
#define NGCORE_API_IMPORT __attribute__((visibility("default")))
|
|
diff --git a/nglib/nglib.h b/nglib/nglib.h
|
|
index f8c745a..e4587d2 100644
|
|
--- a/nglib/nglib.h
|
|
+++ b/nglib/nglib.h
|
|
@@ -26,11 +26,15 @@
|
|
// Philippose - 14.02.2009
|
|
// Modifications for creating a DLL in Windows
|
|
#ifdef WIN32
|
|
+ #if defined(NGSTATIC_BUILD)
|
|
+ #define NGLIB_API
|
|
+ #else
|
|
#ifdef nglib_EXPORTS
|
|
#define NGLIB_API __declspec(dllexport)
|
|
#else
|
|
#define NGLIB_API __declspec(dllimport)
|
|
#endif
|
|
+ #endif
|
|
#else
|
|
#define NGLIB_API __attribute__((visibility("default")))
|
|
#endif
|