]> git.saurik.com Git - wxWidgets.git/commitdiff
Let Cygwin be a Windows build for wxMSW and a unix build otherwise
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 16 Jun 2005 13:58:23 +0000 (13:58 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 16 Jun 2005 13:58:23 +0000 (13:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in
include/wx/dlimpexp.h
include/wx/platform.h

index 1b3409e75281da8561bc51457d668659e2dc0115..79c9028f57de4816363b2e005c0317739df5638d 100755 (executable)
--- a/configure
+++ b/configure
@@ -10562,6 +10562,7 @@ case "${host}" in
   *-*-cygwin*)
       if test "$wxUSE_MSW" = 1 ; then
         wants_win32=1
+        BAKEFILE_FORCE_PLATFORM=win32
       else
         doesnt_want_win32=1
       fi
index 1ed4c4bcd81217524ea1d468ec78156dc3039b3b..76cc44cf5a8cc480364e0806670b7c79352707c8 100644 (file)
@@ -1328,6 +1328,7 @@ case "${host}" in
   *-*-cygwin*)
       if test "$wxUSE_MSW" = 1 ; then
         wants_win32=1
+        BAKEFILE_FORCE_PLATFORM=win32
       else
         doesnt_want_win32=1
       fi
index 6bdfbf458b3cf1109378797171d19a6ac5e1bf7d..16e58d497495c34ad373c19f5691618bc1f3847a 100644 (file)
@@ -48,6 +48,9 @@
 #        define WXEXPORT __declspec(export)
 #        define WXIMPORT __declspec(import)
 #    endif
+#elif defined(__CYGWIN__)
+#    define WXEXPORT __declspec(dllexport)
+#    define WXIMPORT __declspec(dllimport)
 #endif
 
 /* for other platforms/compilers we don't anything */
index 6bb277a2bf538f911a7ca66a542070957b84a4fc..4df0aa5ab4b6d885c84745b43047a1d8311eddaf 100644 (file)
@@ -57,9 +57,9 @@
    first define Windows symbols if they're not defined on the command line: we
    can autodetect everything we need if _WIN32 is defined
  */
-#if defined(__CYGWIN32__) && !defined(__WXMOTIF__) && !defined(__WXGTK__) \
-    && !defined(__WXX11__)
-    /* for Cygwin, default to wxMSW unless otherwise specified */
+#if defined(__CYGWIN__) && defined(__WINDOWS__)
+    /* for Cygwin, a build of wxMSW, or a build with -mno-cygwin is treated
+     * as a Windows build. Otherwise it is treated as a unix compiler. */
 #    ifndef __WXMSW__
 #        define __WXMSW__
 #    endif
    at least maj.min
  */
 #if ( defined( __GNUWIN32__ ) || defined( __MINGW32__ ) || \
-    defined( __CYGWIN__ ) || \
+    ( defined( __CYGWIN__ ) && defined( __WINDOWS__ ) ) || \
       (defined(__WATCOMC__) && __WATCOMC__ >= 1200) ) && \
     !defined(__DOS__) && \
     !defined(__WXMOTIF__) && \