diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-06-15 11:11:10 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-06-15 11:11:10 (GMT) |
commit | 1cbd7d2faa8d543f521b144a8120c3a1ba2f832f (patch) | |
tree | b47b3252c432a415bf772add061e451f5782d6c7 /src/lodepng.cpp | |
parent | 6d2875bda7b5416f2e8c72ec8677b7164de86187 (diff) | |
download | Doxygen-1cbd7d2faa8d543f521b144a8120c3a1ba2f832f.zip Doxygen-1cbd7d2faa8d543f521b144a8120c3a1ba2f832f.tar.gz Doxygen-1cbd7d2faa8d543f521b144a8120c3a1ba2f832f.tar.bz2 |
Release-1.7.0
Diffstat (limited to 'src/lodepng.cpp')
-rw-r--r-- | src/lodepng.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lodepng.cpp b/src/lodepng.cpp index 494e357..8da4293 100644 --- a/src/lodepng.cpp +++ b/src/lodepng.cpp @@ -29,6 +29,7 @@ You are free to name this file lodepng.cpp or lodepng.c depending on your usage. */ #include "lodepng.h" +#include "portable.h" #define VERSION_STRING "20080927" @@ -4061,7 +4062,7 @@ unsigned LodePNG_loadFile(unsigned char** out, size_t* outsize, const char* file *out = 0; *outsize = 0; - file = fopen(filename, "rb"); + file = portable_fopen(filename, "rb"); if(!file) return 78; /*get filesize:*/ @@ -4083,7 +4084,7 @@ unsigned LodePNG_loadFile(unsigned char** out, size_t* outsize, const char* file unsigned LodePNG_saveFile(const unsigned char* buffer, size_t buffersize, const char* filename) { FILE* file; - file = fopen(filename, "wb" ); + file = portable_fopen(filename, "wb" ); if(!file) return 79; fwrite((char*)buffer , 1 , buffersize, file); fclose(file); |