*/
#ifndef MACOS
# if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
- defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
+ defined(THINK_C) || (defined(__SC__) && !defined(__DMC__))|| defined(TARGET_OS_MAC)
# define MACOS
# endif
#endif
# 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
#endif
#if defined(__VISAGECPP__)
-/* I don't compile with this _System linkage for wxWindows */
+/* I don't compile with this _System linkage for wxWidgets */
# ifdef PNGAPI
# undef PNGAPI
# endif