mirror of https://github.com/axmolengine/axmol.git
26 lines
640 B
C
26 lines
640 B
C
#ifndef __EXPORT_COMMON__
|
|
#define __EXPORT_COMMON__
|
|
|
|
#if defined(SHP)
|
|
#include <FBaseConfig.h>
|
|
#define EXPORT_DLL _EXPORT_
|
|
#elif 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
|
|
|
|
#endif // end of __EXPORT_COMMON__
|