2019-11-24 23:15:56 +08:00
|
|
|
|
#ifndef __CCCOCOSSTUDIO_H__
|
2014-07-21 17:45:56 +08:00
|
|
|
|
#define __CCCOCOSSTUDIO_H__
|
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
|
#if (defined(WIN32) && defined(_WINDOWS)) || defined(WINRT) || defined(WP8)
|
2014-07-21 17:45:56 +08:00
|
|
|
|
#ifdef __MINGW32__
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-08-24 07:58:27 +08:00
|
|
|
|
#if defined(CC_STATIC)
|
|
|
|
|
#define CC_STUDIO_DLL
|
|
|
|
|
#else
|
|
|
|
|
#if defined(_USRSTUDIODLL)
|
|
|
|
|
#define CC_STUDIO_DLL __declspec(dllexport)
|
|
|
|
|
#else /* use a DLL library */
|
|
|
|
|
#define CC_STUDIO_DLL __declspec(dllimport)
|
|
|
|
|
#endif
|
2014-07-21 17:45:56 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Define NULL pointer value */
|
|
|
|
|
#ifndef NULL
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
#define NULL 0
|
|
|
|
|
#else
|
|
|
|
|
#define NULL ((void *)0)
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
2015-06-23 11:31:16 +08:00
|
|
|
|
#elif defined(_SHARED_)
|
|
|
|
|
#define CC_STUDIO_DLL __attribute__((visibility("default")))
|
2014-07-21 17:45:56 +08:00
|
|
|
|
#else
|
|
|
|
|
#define CC_STUDIO_DLL
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if (defined(WIN32) && defined(_WINDOWS)) || defined(WINRT) || defined(WP8)
|
|
|
|
|
#ifdef __MINGW32__
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(CC_STATIC)
|
|
|
|
|
#define CC_STUDIOP_DLL
|
|
|
|
|
#else
|
|
|
|
|
#if defined(_USRSTUDIOPDLL)
|
|
|
|
|
#define CC_STUDIOP_DLL __declspec(dllexport)
|
|
|
|
|
#else /* use a DLL library */
|
|
|
|
|
#define CC_STUDIOP_DLL __declspec(dllimport)
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Define NULL pointer value */
|
|
|
|
|
#ifndef NULL
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
#define NULL 0
|
|
|
|
|
#else
|
|
|
|
|
#define NULL ((void *)0)
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#elif defined(_SHARED_)
|
|
|
|
|
#define CC_STUDIOP_DLL __attribute__((visibility("default")))
|
|
|
|
|
#else
|
|
|
|
|
#define CC_STUDIOP_DLL
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-07-21 17:45:56 +08:00
|
|
|
|
#endif /* __CCEXTENSIONEXPORT_H__*/
|