]> git.saurik.com Git - wxWidgets.git/commitdiff
use PNGAPI if it is defined
authorPaul Cornett <paulcor@bullseye.com>
Wed, 7 May 2008 16:23:55 +0000 (16:23 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 7 May 2008 16:23:55 +0000 (16:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagpng.cpp

index 0a5c3c48268593baf7f720cce683ec7987aa31e2..5d91abbe17a9e2f64ddcb05d141cf645431624da 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
-    #include "wx/app.h"
-    #include "wx/bitmap.h"
-    #include "wx/module.h"
+    #include "wx/intl.h"
+    #include "wx/palette.h"
+    #include "wx/stream.h"
 #endif
 
-#include "png.h"
-#include "wx/filefn.h"
-#include "wx/wfstream.h"
-#include "wx/intl.h"
-#include "wx/palette.h"
+#include <png.h>
 
 // For memcpy
 #include <string.h>
@@ -99,7 +95,9 @@ IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
 #if wxUSE_STREAMS
 
 #ifndef PNGLINKAGEMODE
-    #ifdef __WATCOMC__
+    #ifdef PNGAPI
+        #define PNGLINKAGEMODE PNGAPI
+    #elif defined(__WATCOMC__)
         // we need an explicit cdecl for Watcom, at least according to
         //
         // http://sf.net/tracker/index.php?func=detail&aid=651492&group_id=9863&atid=109863