]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
Compilation fix for VC++ 5 and 6
[wxWidgets.git] / include / wx / defs.h
index afaacc7b4cad765fc396048824d75ed2017b22f4..6a9e046661a894643457718f942433bf60f01331 100644 (file)
@@ -5,7 +5,7 @@
 *  Modified by: Ryan Norton (Converted to C)
 *  Created:     01/02/97
 *  RCS-ID:      $Id$
-*  Copyright:   (c)
+*  Copyright:   (c) Julian Smart
 *  Licence:     wxWindows licence
 */
 
     #endif /*  compilers */
 #endif /*  HAVE_BOOL */
 
+#if !defined(__MWERKS__) || !defined(true)
 #if !defined(HAVE_BOOL) && !defined(bool) && !defined(VMS)
     /*  NB: of course, this doesn't replace the standard type, because, for */
     /*      example, overloading based on bool/int parameter doesn't work and */
     #define true ((bool)1)
     #define false ((bool)0)
 #endif
+#endif
 
 /*  for backwards compatibility, also define TRUE and FALSE */
 /*  */
@@ -613,7 +615,8 @@ enum
     wxWINDOWS_OS2,            /*  Native OS/2 PM */
     wxUNIX,                   /*  wxBase under Unix */
     wxX11,                    /*  Plain X11 and Universal widgets */
-    wxPALMOS                  /*  PalmOS */
+    wxPALMOS,                 /*  PalmOS */
+    wxDOS                     /*  wxBase under MS-DOS */
 };
 
 /*  ---------------------------------------------------------------------------- */
@@ -1151,7 +1154,7 @@ enum wxGeometryCentre
 
 enum wxOrientation
 {
-    // don't change the values of these elements, they are used elsewhere
+    /* don't change the values of these elements, they are used elsewhere */
     wxHORIZONTAL              = 0x0004,
     wxVERTICAL                = 0x0008,
 
@@ -2231,9 +2234,12 @@ enum wxUpdateUI
 
 #if defined(__CYGWIN__) && defined(__WXMSW__)
 #   if wxUSE_STL || defined(wxUSE_STD_STRING)
-         //NASTY HACK because the gethostname in sys/unistd.h which the gnu stl includes
-         //and wx builds with by default clash with each other (windows version
-         //2nd param is int, sys/unistd.h version is unsigned int).  
+         /*
+            NASTY HACK because the gethostname in sys/unistd.h which the gnu
+            stl includes and wx builds with by default clash with each other
+            (windows version 2nd param is int, sys/unistd.h version is unsigned
+            int).  
+          */
 #        define gethostname gethostnameHACK
 #        include <unistd.h>
 #        undef gethostname