]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
Various small fixes
[wxWidgets.git] / include / wx / defs.h
index 506b03ffece1e7be9ceebe9652ba2cf52048f208..55a54645ef59988b2ea9763e4018ce51f8723d41 100644 (file)
 #elif defined(__WATCOMC__)
     typedef unsigned int bool;
 #elif defined(__SUNCC__)
-    // If we use int, we get identically overloaded functions in config.cpp
-    typedef unsigned char bool;
+    #ifdef __SUNPRO_CC
+        // starting from version 5.0 Sun CC understands 'bool'
+        #if __SUNPRO_CC <= 0x0420
+            // If we use int, we get identically overloaded functions in config.cpp
+            typedef unsigned char bool;
+        #endif // Sun CC version
+    #else
+        #error "Unknown compiler: only Sun's CC and gcc are currently reckognized."
+    #endif // Sun CC
 #endif
 
 #if ( defined(_MSC_VER) && (_MSC_VER <= 800) ) || defined(__GNUWIN32__) || (defined(__BORLANDC__) && defined(__WIN16__)) || defined(__SC__) || defined(__SALFORDC__)
@@ -1023,6 +1030,7 @@ typedef struct _GtkStyle        GtkStyle;
 typedef struct _GtkAdjustment   GtkAdjustment;
 typedef struct _GtkList         GtkList;
 typedef struct _GtkToolbar      GtkToolbar;
+typedef struct _GtkTooltips     GtkTooltips;
 typedef struct _GtkNotebook     GtkNotebook;
 typedef struct _GtkNotebookPage GtkNotebookPage;