]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image_png.c
fixed compile errors and warnings using Dev-C++ in "Compile as C++" mode
[xonotic/darkplaces.git] / image_png.c
index c7acf47947ab91be2c15e47c5efd7c990b5f68f3..ca090b2c57ff53113369cab8deba020deb0ae7bf 100644 (file)
@@ -249,7 +249,7 @@ unsigned char *PNG_LoadImage_BGRA (const unsigned char *raw, int filesize)
        // NOTE: this relies on jmp_buf being the first thing in the png structure
        // created by libpng! (this is correct for libpng 1.2.x)
 #ifdef __cplusplus
-#ifdef MACOSX
+#if defined(MACOSX) || defined(WIN32)
        if (setjmp((int *)png))
 #else
        if (setjmp((__jmp_buf_tag *)png))