]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpng.cpp
one more fix for tree selection
[wxWidgets.git] / src / common / imagpng.cpp
index 007bfadaf0e275d247f8761ec13f9405681430aa..84c0d89c93d014a00996899c57052ad577b10edb 100644 (file)
@@ -109,7 +109,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
 #if wxUSE_STREAMS
 
 #ifndef PNGLINKAGEMODE
-    #ifdef __WATCOMC__
+    #if defined(__WATCOMC__) && ( defined(__WXMSW__) || __WATCOMC__ > 1230 )
         // 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