/usr/include/gromacs/visibility.h is in gromacs-dev 4.6.5-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #ifdef USE_VISIBILITY /* off by default */
#if defined _WIN32 || defined __CYGWIN__ || defined WINDOWS
#ifdef gmx_EXPORTS
#define GMX_LIBGMX_EXPORT __declspec(dllexport)
#else
#define GMX_LIBGMX_EXPORT __declspec(dllimport)
#endif
#ifdef md_EXPORTS
#define GMX_LIBMD_EXPORT __declspec(dllexport)
#else
#define GMX_LIBMD_EXPORT __declspec(dllimport)
#endif
#ifdef gmxana_EXPORTS
#define GMX_LIBGMXANA_EXPORT __declspec(dllexport)
#else
#define GMX_LIBGMXANA_EXPORT __declspec(dllimport)
#endif
#ifdef gmxpreprocess_EXPORTS
#define GMX_LIBGMXPREPROCESS_EXPORT __declspec(dllexport)
#else
#define GMX_LIBGMXPREPROCESS_EXPORT __declspec(dllimport)
#endif
#else /* Unix */
#define GMX_LIBGMX_EXPORT __attribute__((__visibility__("default")))
#define GMX_LIBMD_EXPORT __attribute__((__visibility__("default")))
#define GMX_LIBGMXANA_EXPORT __attribute__((__visibility__("default")))
#define GMX_LIBGMXPREPROCESS_EXPORT __attribute__((__visibility__("default")))
#endif
#else /* no USE_VISIBILITY */
#define GMX_LIBGMX_EXPORT
#define GMX_LIBMD_EXPORT
#define GMX_LIBGMXANA_EXPORT
#define GMX_LIBGMXPREPROCESS_EXPORT
#endif /* USE_VISIBILITY */
|