2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __EXPORT_COMMON__
|
|
|
|
#define __EXPORT_COMMON__
|
|
|
|
|
|
|
|
#if defined(SHP)
|
|
|
|
#include <FBaseConfig.h>
|
|
|
|
#define EXPORT_DLL _EXPORT_
|
|
|
|
#elif defined(_WIN32)
|
|
|
|
#if defined(_EXPORT_DLL_)
|
2013-06-23 17:21:13 +08:00
|
|
|
#define EXPORT_DLL// __declspec(dllexport)
|
2012-04-19 14:35:52 +08:00
|
|
|
#elif defined(IGNORE_EXPORT)
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#else /* use a DLL library */
|
2013-06-23 17:21:13 +08:00
|
|
|
#define EXPORT_DLL// __declspec(dllimport)
|
2012-04-19 14:35:52 +08:00
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#if defined(_SHARED_)
|
|
|
|
#define EXPORT_DLL __attribute__((visibility("default")))
|
|
|
|
#elif defined(IGNORE_EXPORT)
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#else
|
|
|
|
#define EXPORT_DLL
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // end of __EXPORT_COMMON__
|