summaryrefslogtreecommitdiffstats
path: root/liblodepng/lodepng.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-06-22 18:30:20 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-06-22 18:30:20 (GMT)
commit15678e7ccb524af8c90a4018f3b882ba184e6a39 (patch)
treef3fde6748e51924ae640cfba279aca5df79a3e8f /liblodepng/lodepng.cpp
parent3360831da443551791f4115cd4c5373b6f99a8d7 (diff)
downloadDoxygen-15678e7ccb524af8c90a4018f3b882ba184e6a39.zip
Doxygen-15678e7ccb524af8c90a4018f3b882ba184e6a39.tar.gz
Doxygen-15678e7ccb524af8c90a4018f3b882ba184e6a39.tar.bz2
Fix windows build
Diffstat (limited to 'liblodepng/lodepng.cpp')
-rw-r--r--liblodepng/lodepng.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/liblodepng/lodepng.cpp b/liblodepng/lodepng.cpp
index 249546a..6e28587 100644
--- a/liblodepng/lodepng.cpp
+++ b/liblodepng/lodepng.cpp
@@ -2434,12 +2434,7 @@ void LodePNG_Encoder_copy(LodePNG_Encoder* dest, const LodePNG_Encoder* source)
/*write given buffer to the file, overwriting the file, it doesn't append to it.*/
unsigned LodePNG_saveFile(const unsigned char* buffer, size_t buffersize, const char* filename)
{
- FILE* file;
-#if defined(_WIN32) && !defined(__CYGWIN__)
- file = _fopen(filename,"wb");
-#else
- file = fopen(filename,"wb");
-#endif
+ FILE* file = fopen(filename,"wb");
if(!file) return 79;
fwrite((char*)buffer , 1 , buffersize, file);
fclose(file);