X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6c287cc2bf8f8b002ab04e133837b4a5c7d3f5a..57d7f9888e18d350fb023fdccd39e0ab7a3bb8dd:/include/wx/wxcrt.h?ds=inline

diff --git a/include/wx/wxcrt.h b/include/wx/wxcrt.h
index dbf8479f59..d4ebf7d492 100644
--- a/include/wx/wxcrt.h
+++ b/include/wx/wxcrt.h
@@ -586,10 +586,6 @@
     #endif /* Unicode/ASCII */
 #endif /* TCHAR-aware compilers/the others */
 
-#ifdef wxStrtoll
-    #define wxHAS_STRTOLL
-#endif
-
 /*
     various special cases
  */
@@ -806,6 +802,14 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */
     #define wxUSE_WXVSNPRINTF 0
 #endif
 
+#ifndef wxStrtoll
+    /* supply strtoll and strtoull, if needed */
+    WXDLLIMPEXP_BASE wxLongLong_t wxStrtoll(const wxChar* nptr, wxChar** endptr, int base);
+    WXDLLIMPEXP_BASE wxULongLong_t wxStrtoull(const wxChar* nptr, wxChar** endptr, int base);
+#endif
+
+#define wxHAS_STRTOLL
+
 /*
    In Unicode mode we need to have all standard functions such as wprintf() and
    so on but not all systems have them so use our own implementations in this