add gcc export specifier

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@587 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-03-03 15:23:35 +00:00
parent a095b57814
commit a08b05e131

View file

@ -15,6 +15,19 @@
// $Header:
#ifdef __GNUC__
#ifdef _HAVE_GCC_VISIBILITY
#define LOKI_EXPORT_SPEC __attribute__ ((visibility("default")))
#define LOKI_IMPORT_SPEC
#else
#define LOKI_EXPORT_SPEC
#define LOKI_IMPORT_SPEC
#endif
#else
#ifdef _WIN32
#define LOKI_EXPORT_SPEC __declspec(dllexport)
#define LOKI_IMPORT_SPEC __declspec(dllimport)
@ -23,6 +36,8 @@
#define LOKI_IMPORT_SPEC
#endif
#endif
#if (defined(LOKI_MAKE_DLL) && defined(LOKI_DLL)) || \
(defined(LOKI_MAKE_DLL) && defined(LOKI_STATIC)) || \