2010-09-29 17:29:43 +08:00
|
|
|
#ifndef __EXPORT_COMMON__
|
|
|
|
#define __EXPORT_COMMON__
|
2011-09-20 12:39:44 +08:00
|
|
|
#if defined(SHP)
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#else
|
2010-09-29 17:29:43 +08:00
|
|
|
#if defined(_WIN32)
|
|
|
|
#if defined(_EXPORT_DLL_)
|
|
|
|
#define EXPORT_DLL __declspec(dllexport)
|
|
|
|
#elif defined(IGNORE_EXPORT)
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#else /* use a DLL library */
|
|
|
|
#define EXPORT_DLL __declspec(dllimport)
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#if defined(_SHARED_)
|
|
|
|
#define EXPORT_DLL __attribute__((visibility("default")))
|
|
|
|
#elif defined(IGNORE_EXPORT)
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#else
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2011-09-20 12:39:44 +08:00
|
|
|
#endif /* SHP */
|
|
|
|
|
2010-09-29 17:29:43 +08:00
|
|
|
#endif // end of __EXPORT_COMMON__
|