diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2011-11-19 21:00:34 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2011-11-19 21:00:34 +0800 |
commit | 69a67e588614376b3e35bbdf5d05cbc9c914faab (patch) | |
tree | 941426f723ed41785bb369a116e3472c5f373e35 | |
parent | a15610f26641db79c5585fcec493a8287de80af5 (diff) |
SexyAppFramework: Include the ctype.h for tolower/toupper
-rw-r--r-- | osframework/source/SexyAppFramework/Common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/osframework/source/SexyAppFramework/Common.h b/osframework/source/SexyAppFramework/Common.h index 96b974c..d8ee51a 100644 --- a/osframework/source/SexyAppFramework/Common.h +++ b/osframework/source/SexyAppFramework/Common.h @@ -25,6 +25,7 @@ #include <stdarg.h> #include <stdio.h> #include <wchar.h> +#include <ctype.h> #ifdef WIN32 #ifndef NOMINMAX @@ -225,12 +226,12 @@ namespace Sexy inline void inlineLower(std::string &theData) { - std::transform(theData.begin(), theData.end(), theData.begin(), tolower); + std::transform(theData.begin(), theData.end(), theData.begin(), ::tolower); } inline void inlineLower(Sexy::WString &theData) { - std::transform(theData.begin(), theData.end(), theData.begin(), tolower); + std::transform(theData.begin(), theData.end(), theData.begin(), ::tolower); } inline void inlineLTrim(std::string &theData, |