refine XXTEA_DLL macro
This commit is contained in:
parent
9638089278
commit
45c237fbe4
|
|
@ -21,16 +21,12 @@
|
|||
|
||||
#include <stddef.h> /* for size_t & NULL declarations */
|
||||
|
||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||
#if defined(CC_STATIC)
|
||||
#define XXTEA_DLL
|
||||
#else
|
||||
#if defined(_WIN32) && defined(_WINDOWS)
|
||||
#if defined(_USRDLL)
|
||||
#define XXTEA_DLL __declspec(dllexport)
|
||||
#else /* use a DLL library */
|
||||
#define XXTEA_DLL __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#define XXTEA_DLL
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue