X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c46af496abe3f35b44f599fd120394a269bc09a..02e8b2f9fbdfcd25080c42082d637da257c20094:/src/common/utilscmn.cpp diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 349d6f04a0..37d62161f6 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -56,7 +56,7 @@ #include "../common/glob.inc" #endif -#ifdef __WINDOWS__ +#ifdef __WXMSW__ #include "windows.h" #endif @@ -134,7 +134,7 @@ extern "C" int strncasecmp (const char *, const char *, size_t); } #endif -#endif /* __WINDOWS__ */ +#endif /* __WXMSW__ */ char * @@ -172,14 +172,14 @@ void StringToFloat (char *s, float *number) { if (s && *s && number) - *number = (float) strtod (s, NULL); + *number = (float) strtod (s, (char **) NULL); } void StringToDouble (char *s, double *number) { if (s && *s && number) - *number = strtod (s, NULL); + *number = strtod (s, (char **) NULL); } char * @@ -205,14 +205,14 @@ void StringToInt (char *s, int *number) { if (s && *s && number) - *number = (int) strtol (s, NULL, 10); + *number = (int) strtol (s, (char **) NULL, 10); } void StringToLong (char *s, long *number) { if (s && *s && number) - *number = strtol (s, NULL, 10); + *number = strtol (s, (char **) NULL, 10); } char * @@ -309,7 +309,7 @@ StringMatch (char *str1, char *str2, bool subString, bool exact) // [volatile] wxString wxNow( void ) { - time_t now = time(NULL); + time_t now = time((time_t *) NULL); char *date = ctime(&now); date[24] = '\0'; return wxString(date); @@ -344,7 +344,7 @@ wxGetEmailAddress (char *address, int maxSize) char *wxStripMenuCodes (char *in, char *out) { if (!in) - return NULL; + return (char *) NULL; if (!out) out = copystring(in); @@ -408,7 +408,7 @@ wxFindWindowByLabel (const wxString& title, wxWindow * parent) } // for() } - return NULL; + return (wxWindow *) NULL; } // Recursive @@ -433,7 +433,7 @@ wxFindWindowByLabel1 (const wxString& title, wxWindow * parent) } - return NULL; // Not found + return (wxWindow *) NULL; // Not found } @@ -489,7 +489,7 @@ wxFindWindowByName1 (const wxString& title, wxWindow * parent) } - return NULL; // Not found + return (wxWindow *) NULL; // Not found } @@ -519,7 +519,7 @@ int wxDebugStreamBuf::overflow(int WXUNUSED(i)) char *txt = new char[len+1]; strncpy(txt, pbase(), len); txt[len] = '\0'; -#ifdef __WINDOWS__ +#ifdef __WXMSW__ OutputDebugString((LPCSTR)txt); #else fprintf(stderr, txt); @@ -535,7 +535,7 @@ int wxDebugStreamBuf::sync(void) char *txt = new char[len+1]; strncpy(txt, pbase(), len); txt[len] = '\0'; -#ifdef __WINDOWS__ +#ifdef __WXMSW__ OutputDebugString((LPCSTR)txt); #else fprintf(stderr, txt);