]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/utilsres.cpp
Fix wxCocoa build by including the relevant headers for the __WXOSX__ case.
[wxWidgets.git] / src / gtk1 / utilsres.cpp
index 76deb2b6be66356a6de6bf8729614cf020c80e32..f8f41519a63d88f18d142e343f276b17dd4527af 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/utils.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
+    #include "wx/string.h"
+    #include "wx/log.h"
+    #include "wx/app.h"
 #endif
 
-#include "wx/utils.h"
-#include "wx/string.h"
-#include "wx/log.h"
 #include "wx/config.h"
-#include "wx/app.h"
 
 //-----------------------------------------------------------------------------
 // resource functions
@@ -90,7 +91,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, float *value,
     bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
     if (succ)
     {
-        *value = (float)wxStrtod(s, NULL);
+        *value = (float)wxStrtod(s, (wchar_t **) NULL);
         delete[] s;
         return true;
     }
@@ -103,7 +104,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, long *value,
     bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
     if (succ)
     {
-        *value = wxStrtol(s, NULL, 10);
+        *value = wxStrtol(s, (wchar_t **) NULL, 10);
         delete[] s;
         return true;
     }
@@ -116,7 +117,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c
     bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
     if (succ)
     {
-        *value = (int)wxStrtol(s, NULL, 10);
+        *value = (int)wxStrtol(s, (wchar_t **) NULL, 10);
         delete[] s;
         return true;
     }