]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/valtext.h
Wrappers for *ToText
[wxWidgets.git] / include / wx / valtext.h
index 42b08aa0bfd05a18c745461db2ff85031649970f..47ed43d83da0bf9eeefb7b04ad865f57b39a285b 100644 (file)
 #ifndef _WX_VALTEXTH__
 #define _WX_VALTEXTH__
 
 #ifndef _WX_VALTEXTH__
 #define _WX_VALTEXTH__
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "valtext.h"
 #endif
 
 #include "wx/defs.h"
 
 #pragma interface "valtext.h"
 #endif
 
 #include "wx/defs.h"
 
-#if wxUSE_VALIDATORS
+#if wxUSE_VALIDATORS && wxUSE_TEXTCTRL
 
 #include "wx/textctrl.h"
 #include "wx/validate.h"
 
 #include "wx/textctrl.h"
 #include "wx/validate.h"
@@ -106,7 +106,7 @@ private:
 };
 
 #endif
 };
 
 #endif
-  // wxUSE_VALIDATORS
+  // wxUSE_VALIDATORS && wxUSE_TEXTCTRL
 
 #endif
   // _WX_VALTEXTH__
 
 #endif
   // _WX_VALTEXTH__