X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12a3f2275c94a345cf83abf5151db68391859623..5283098e1316b4a811fbccaabbda71f676e86c93:/src/png/pngconf.h diff --git a/src/png/pngconf.h b/src/png/pngconf.h index 738a43a44c..e4fbd8c41c 100644 --- a/src/png/pngconf.h +++ b/src/png/pngconf.h @@ -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