]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valtext.cpp
added #include <fcntl.h> to allow compilation under Linux
[wxWidgets.git] / src / common / valtext.cpp
index f1cef09edc3342cad4d710435c03279f236d361f..c3139ccfb6d404471f2c297dd23ea243a201535b 100644 (file)
 #include <string.h>
 #include <stdlib.h>
 
+#ifdef __SALFORDC__
+#include <clib.h>
+#endif
+
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxTextValidator, wxValidator)
 
@@ -309,7 +313,7 @@ static bool wxIsNumeric(const wxString& val)
        for ( i = 0; i < (int)val.Length(); i++)
        {
                if ((!isdigit(val[i])) && (val[i] != '.'))
-                 if(!(i == 0) && (val[i] == '-'))
+                 if(!((i == 0) && (val[i] == '-')))
                        return FALSE;
        }
        return TRUE;