X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3f6cbd99cd7c5b86742d56114b21da5b34a5c74..3dccf96eabc68d95839782d35e6193855f007fd2:/include/wx/wxcrt.h diff --git a/include/wx/wxcrt.h b/include/wx/wxcrt.h index 5656e63481..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 */ @@ -748,6 +744,7 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ #ifndef wxVsnprintf_ #if defined(__VISUALC__) || \ (defined(__BORLANDC__) && __BORLANDC__ >= 0x540) + #define wxSnprintf_ _sntprintf #define wxVsnprintf_ _vsntprintf WX_DEFINE_VARARG_FUNC(int, wxSnprintf_, _sntprintf) #endif @@ -805,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