2019-11-25 01:35:26 +08:00
|
|
|
|
/****************************************************************************
|
|
|
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
|
|
|
|
Copyright (c) 2019-2020 simdsoft, @HALX99
|
|
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
|
THE SOFTWARE.
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef __CCCOCOSSTUDIO_H__
|
2014-07-21 17:45:56 +08:00
|
|
|
|
#define __CCCOCOSSTUDIO_H__
|
|
|
|
|
|
2019-11-25 01:35:26 +08:00
|
|
|
|
#if (defined(WIN32) && defined(_WINDOWS))
|
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
|
|
|
|
|
|
|
|
|
|
2019-11-25 01:35:26 +08:00
|
|
|
|
#if (defined(WIN32) && defined(_WINDOWS))
|
2019-11-24 23:15:56 +08:00
|
|
|
|
#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__*/
|