Merge pull request #6986 from iSevenDays/patch-11

Fix CCImage to be compatible with UNIX2003
This commit is contained in:
minggo 2014-06-06 12:05:58 +08:00
commit 49f7b2aec1
1 changed files with 18 additions and 0 deletions

View File

@ -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"