1 #ifdef USE_VISIBILITY /* off by default */
2 #if defined _WIN32 || defined __CYGWIN__ || defined WINDOWS
4 #define GMX_LIBGMX_EXPORT __declspec(dllexport)
6 #define GMX_LIBGMX_EXPORT __declspec(dllimport)
9 #define GMX_LIBMD_EXPORT __declspec(dllexport)
11 #define GMX_LIBMD_EXPORT __declspec(dllimport)
14 #define GMX_LIBGMXANA_EXPORT __declspec(dllexport)
16 #define GMX_LIBGMXANA_EXPORT __declspec(dllimport)
18 #ifdef gmxpreprocess_EXPORTS
19 #define GMX_LIBGMXPREPROCESS_EXPORT __declspec(dllexport)
21 #define GMX_LIBGMXPREPROCESS_EXPORT __declspec(dllimport)
24 #define GMX_LIBGMX_EXPORT __attribute__((__visibility__("default")))
25 #define GMX_LIBMD_EXPORT __attribute__((__visibility__("default")))
26 #define GMX_LIBGMXANA_EXPORT __attribute__((__visibility__("default")))
27 #define GMX_LIBGMXPREPROCESS_EXPORT __attribute__((__visibility__("default")))
29 #else /* no USE_VISIBILITY */
30 #define GMX_LIBGMX_EXPORT
31 #define GMX_LIBMD_EXPORT
32 #define GMX_LIBGMXANA_EXPORT
33 #define GMX_LIBGMXPREPROCESS_EXPORT
34 #endif /* USE_VISIBILITY */