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
|
#ifndef MRT_EXPORT_MACRO_H__
#define MRT_EXPORT_MACRO_H__
// Shared library support
#ifdef _WINDOWS
# pragma warning(disable:4251) /* needs to have dll-interface used by client */
# pragma warning(disable:4275) /* non dll-interface struct */
# pragma warning(disable:4786) /* debug info exceedes 255 bytes */
# define DLLIMPORT __declspec(dllimport)
# define DLLEXPORT __declspec(dllexport)
# define DLLDLLLOCAL
# define DLLDLLPUBLIC
#else
# ifdef GCC_HASCLASSVISIBILITY
# define DLLIMPORT __attribute__ ((visibility("default")))
# define DLLEXPORT __attribute__ ((visibility("default")))
# define DLLDLLLOCAL __attribute__ ((visibility("hidden")))
# define DLLDLLPUBLIC __attribute__ ((visibility("default")))
# else
# define DLLIMPORT
# define DLLEXPORT
# define DLLDLLLOCAL
# define DLLDLLPUBLIC
# endif
#endif
#endif
|