]> git.saurik.com Git - wxWidgets.git/commitdiff
DMC reality.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 10 Sep 2004 12:09:35 +0000 (12:09 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 10 Sep 2004 12:09:35 +0000 (12:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/platform.h

index 6623815e5b495fad11d2cfc61dd6d51b0d24cb69..8ecb13c7489fc65fb6f1d974734109f0544f5f11 100644 (file)
 #endif
 
 /*
-       WXMAC variants
-       __WXMAC_CLASSIC__ means ppc non-carbon builds, __WXMAC_CARBON__ means
-       carbon API available (mach or cfm builds) , __WXMAC_OSX__ means mach-o
-       builds, running under 10.2 + only
+    WXMAC variants
+    __WXMAC_CLASSIC__ means ppc non-carbon builds, __WXMAC_CARBON__ means
+    carbon API available (mach or cfm builds) , __WXMAC_OSX__ means mach-o
+    builds, running under 10.2 + only
 */
 #ifdef __WXMAC__
-       #if defined(__MACH__)
-               #define __WXMAC_OSX__ 1
-               #define __WXMAC_CARBON__ 1
-               #define __WXMAC_CLASSIC__ 0
+    #if defined(__MACH__)
+        #define __WXMAC_OSX__ 1
+        #define __WXMAC_CARBON__ 1
+        #define __WXMAC_CLASSIC__ 0
         #ifdef __WXMAC_XCODE__
             #include "wx/mac/carbon/config_xcode.h"
         #endif
-       #else
-               #define __WXMAC_OSX__ 0
-               #if TARGET_CARBON
-                       #define __WXMAC_CARBON__ 1
-                       #define __WXMAC_CLASSIC__ 0
-               #else
-                       #define __WXMAC_CARBON__ 0
-                       #define __WXMAC_CLASSIC__ 1
-               #endif
-       #endif
+    #else
+        #define __WXMAC_OSX__ 0
+        #if TARGET_CARBON
+            #define __WXMAC_CARBON__ 1
+            #define __WXMAC_CLASSIC__ 0
+        #else
+            #define __WXMAC_CARBON__ 0
+            #define __WXMAC_CLASSIC__ 1
+        #endif
+    #endif
 #endif
 
 /*
                 with it, hence explicitly define a lower WINVER value for it.
              */
 #           define WINVER 0x0400
+#       elif defined(__DMC__)
+            /*
+                Digital Mars is distributed with a little outdated headers.
+             */
+#           define WINVER 0x0400
 #       else /* !VC++ 6 */
             /*
                see MSDN for the description of possible WINVER values, this one
 #       ifndef __WINCE_NET__
 #           define __WINCE_NET__
 #       endif
-#   elif (_WIN32_WCE >= 200) 
+#   elif (_WIN32_WCE >= 200)
 #       ifndef __HANDHELDPC__
 #           define __HANDHELDPC__
 #       endif