From 770d5e91b7bee711d2670841d9397fbbfe2df539 Mon Sep 17 00:00:00 2001 From: Anton Sokolchenko Date: Thu, 5 Jun 2014 18:02:45 +0300 Subject: [PATCH] Update CCImage.cpp --- cocos/platform/CCImage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/platform/CCImage.cpp b/cocos/platform/CCImage.cpp index e6f972b9e5..91bd8162f9 100644 --- a/cocos/platform/CCImage.cpp +++ b/cocos/platform/CCImage.cpp @@ -39,6 +39,7 @@ THE SOFTWARE. extern "C" { +#if defined(__APPLE__) || defined(__unix) #ifndef __ENABLE_COMPATIBILITY_WITH_UNIX_2003__ #define __ENABLE_COMPATIBILITY_WITH_UNIX_2003__ #include @@ -55,6 +56,7 @@ extern "C" return strerror(errnum); } #endif +#endif #include "png.h" #include "tiffio.h" #include "base/etc1.h"