diff --git a/cocos/2d/ZipUtils.h b/cocos/2d/ZipUtils.h index 3fecf2ccba..da5ec54673 100644 --- a/cocos/2d/ZipUtils.h +++ b/cocos/2d/ZipUtils.h @@ -32,6 +32,7 @@ THE SOFTWARE. #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) #include "platform/android/CCFileUtilsAndroid.h" #elif(CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) +// for import ssize_t on win32 platform #include "CCStdC.h" #endif diff --git a/cocos/editor-support/spine/extension.h b/cocos/editor-support/spine/extension.h index 7c2f6d5788..a8f64b1b19 100644 --- a/cocos/editor-support/spine/extension.h +++ b/cocos/editor-support/spine/extension.h @@ -54,6 +54,7 @@ #ifndef SPINE_EXTENSION_H_ #define SPINE_EXTENSION_H_ +// for import ssize_t on win32 platform #if defined(_MSC_VER) #include "CCStdC.h" #endif