Update CCImage.cpp

This commit is contained in:
Anton Sokolchenko 2014-06-05 18:02:45 +03:00
parent 5f74b8568d
commit 770d5e91b7
1 changed files with 2 additions and 0 deletions
cocos/platform

View File

@ -39,6 +39,7 @@ THE SOFTWARE.
extern "C" extern "C"
{ {
#if defined(__APPLE__) || defined(__unix)
#ifndef __ENABLE_COMPATIBILITY_WITH_UNIX_2003__ #ifndef __ENABLE_COMPATIBILITY_WITH_UNIX_2003__
#define __ENABLE_COMPATIBILITY_WITH_UNIX_2003__ #define __ENABLE_COMPATIBILITY_WITH_UNIX_2003__
#include <stdio.h> #include <stdio.h>
@ -55,6 +56,7 @@ extern "C"
return strerror(errnum); return strerror(errnum);
} }
#endif #endif
#endif
#include "png.h" #include "png.h"
#include "tiffio.h" #include "tiffio.h"
#include "base/etc1.h" #include "base/etc1.h"