wxMGL/Watcom linkage fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 10 Jan 2006 16:52:02 +0000 (16:52 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 10 Jan 2006 16:52:02 +0000 (16:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagpng.cpp
src/common/imagtiff.cpp

index ca4e72c240522b2b006d3c731ef8172b3610cf33..fcb4b0a0e6eb9c0d1a0c1c0d03af2595388c4157 100644 (file)
@@ -105,7 +105,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
 #if wxUSE_STREAMS
 
 #ifndef PNGLINKAGEMODE
-    #if defined(__WATCOMC__) && defined(__WXMSW__)
+    #if defined(__WATCOMC__) && ( defined(__WXMSW__) || defined(__WXMGL__) )
         // 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
index 8c7d45a6fbd16fb42bb0f16e2abc474d6c8bff2a..4c09339ca7683b09147b7b0d7ce00017f132fe62 100644 (file)
@@ -34,7 +34,11 @@ extern "C"
 #include "wx/module.h"
 
 #ifndef TIFFLINKAGEMODE
-  #define TIFFLINKAGEMODE LINKAGEMODE
+  #if defined(__WATCOMC__) && defined(__WXMGL__)
+    #define TIFFLINKAGEMODE cdecl
+  #else
+    #define TIFFLINKAGEMODE LINKAGEMODE
+  #endif
 #endif
 
 //-----------------------------------------------------------------------------