]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsres.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / src / gtk / utilsres.cpp
index 1b970632197f4eb8cdcdf48ae5b3ee9d8b3e8baf..bee27c4457a79ccc776fb8866d93db6dea6854ad 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/list.h"
     #include "wx/string.h"
 #ifndef WX_PRECOMP
     #include "wx/list.h"
     #include "wx/string.h"
+    #include "wx/log.h"
+    #include "wx/app.h"
 #endif
 
 #endif
 
-#include "wx/log.h"
 #include "wx/config.h"
 #include "wx/config.h"
-#include "wx/app.h"
 
 //-----------------------------------------------------------------------------
 // resource functions
 
 //-----------------------------------------------------------------------------
 // resource functions
@@ -91,7 +91,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, float *value,
     bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
     if (succ)
     {
     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;
     }
         delete[] s;
         return true;
     }
@@ -104,7 +104,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, long *value,
     bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
     if (succ)
     {
     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;
     }
         delete[] s;
         return true;
     }
@@ -117,7 +117,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c
     bool succ = wxGetResource(section, entry, (wxChar **)&s, file);
     if (succ)
     {
     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;
     }
         delete[] s;
         return true;
     }