mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6986 from iSevenDays/patch-11
Fix CCImage to be compatible with UNIX2003
This commit is contained in:
commit
49f7b2aec1
|
@ -39,6 +39,24 @@ THE SOFTWARE.
|
|||
|
||||
extern "C"
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__unix)
|
||||
#ifndef __ENABLE_COMPATIBILITY_WITH_UNIX_2003__
|
||||
#define __ENABLE_COMPATIBILITY_WITH_UNIX_2003__
|
||||
#include <stdio.h>
|
||||
FILE *fopen$UNIX2003( const char *filename, const char *mode )
|
||||
{
|
||||
return fopen(filename, mode);
|
||||
}
|
||||
size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d )
|
||||
{
|
||||
return fwrite(a, b, c, d);
|
||||
}
|
||||
char *strerror$UNIX2003( int errnum )
|
||||
{
|
||||
return strerror(errnum);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#include "png.h"
|
||||
#include "tiffio.h"
|
||||
#include "base/etc1.h"
|
||||
|
|
Loading…
Reference in New Issue