]> git.saurik.com Git - wxWidgets.git/blobdiff - src/png/pngconf.h
xml projects for CW 8
[wxWidgets.git] / src / png / pngconf.h
index 738a43a44c0b1345564d7f0eea139c613fc2bfd3..e4fbd8c41ce1f7c0939ce0159f9a80c3736ca797 100644 (file)
@@ -1157,9 +1157,13 @@ typedef z_stream FAR *  png_zstreamp;
 #  endif
 #endif
 
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__WINE__)
 #  undef PNGAPI
-#  define PNGAPI __cdecl
+#  if defined(__WINE__)
+#    define PNGAPI
+#  else
+#    define PNGAPI __cdecl
+#  endif
 #  undef PNG_IMPEXP
 #  define PNG_IMPEXP
 #endif