]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
blind attempt to fix wxMac compilation (__UNIX__ defined on OS X?)
[wxWidgets.git] / include / wx / defs.h
index 823ad49548812d00d698930e286745b6b42a584d..76260c94fb64e05b6ad58cc7a5363fff08a2358a 100644 (file)
@@ -7,7 +7,7 @@
 *  RCS-ID:      $Id$ 
 *  Copyright:   (c) 
 *  Licence:     wxWindows licence 
-**/
+*/
 
 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
 
 
 #include "wx/platform.h"
 
+/*  RN - only double-check the environment when building in C++ 
+    Shouldn't configure pass the environment to all sub-libs too? */
+#ifdef __cplusplus
 /*  Make sure the environment is set correctly */
-#if defined(__WXMSW__) && defined(__X__)
-    #error "Target can't be both X and Windows"
-#elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && \
+#   if defined(__WXMSW__) && defined(__X__)
+#       error "Target can't be both X and Windows"
+#   elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && \
       !defined(__WXPM__) && !defined(__WXMAC__) && !defined(__WXCOCOA__) && \
       !defined(__X__) && !defined(__WXMGL__) && !defined(__WXX11__) && \
       wxUSE_GUI
-    #ifdef __UNIX__
-        #error "No Target! You should use wx-config program for compilation flags!"
-    #else /*  !Unix */
-    #error "No Target! You should use supplied makefiles for compilation!"
-    #endif /*  Unix/!Unix */
-#endif
+#       ifdef __UNIX__
+#           error "No Target! You should use wx-config program for compilation flags!"
+#       else /*  !Unix */
+#           error "No Target! You should use supplied makefiles for compilation!"
+#       endif /*  Unix/!Unix */
+#   endif
+#endif /*__cplusplus*/
 
 #ifndef __WXWINDOWS__
     #define __WXWINDOWS__ 1
@@ -2012,22 +2016,22 @@ typedef unsigned short  WXWORD;
 typedef void*       WXWidget;
 typedef void*       WXWindow;
 typedef void*       WXDisplay;
-/*
-typedef WindowPtr       WXHWND;
-typedef Handle          WXHANDLE;
-typedef CIconHandle     WXHICON;
+
+/* typedef WindowPtr       WXHWND; */
+/* typedef Handle          WXHANDLE; */
+/* typedef CIconHandle     WXHICON; */
 /* typedef unsigned long   WXHFONT; */
-typedef MenuHandle      WXHMENU;
+/* typedef MenuHandle      WXHMENU; */
 /* typedef unsigned long   WXHPEN; */
 /* typedef unsigned long   WXHBRUSH; */
 /* typedef unsigned long   WXHPALETTE; */
-typedef CursHandle      WXHCURSOR;
-typedef RgnHandle       WXHRGN;
+/* typedef CursHandle      WXHCURSOR; */
+/* typedef RgnHandle       WXHRGN; */
 /* typedef unsigned long   WXHACCEL; */
 /* typedef unsigned long   WXHINSTANCE; */
 /* typedef unsigned long   WXHIMAGELIST; */
 /* typedef unsigned long   WXHGLOBAL; */
-typedef GrafPtr         WXHDC;
+/* typedef GrafPtr         WXHDC; */
 /* typedef unsigned int    WXWPARAM; */
 /* typedef long            WXLPARAM; */
 /* typedef void *          WXRGNDATA; */
@@ -2037,11 +2041,11 @@ typedef GrafPtr         WXHDC;
 /* typedef void *          WXDRAWITEMSTRUCT; */
 /* typedef void *          WXMEASUREITEMSTRUCT; */
 /* typedef void *          WXLPCREATESTRUCT; */
-typedef int (*WXFARPROC)();
+/* typedef int (*WXFARPROC)(); */
+
+/* typedef WindowPtr       WXWindow; */
+/* typedef ControlHandle   WXWidget; */
 
-typedef WindowPtr       WXWindow;
-typedef ControlHandle   WXWidget;
-*/
 #endif
 
 #ifdef __WXCOCOA__