diff --git a/cocos/base/CCDictionary.cpp b/cocos/base/CCDictionary.cpp index 59306baa7f..cf9ea4b184 100644 --- a/cocos/base/CCDictionary.cpp +++ b/cocos/base/CCDictionary.cpp @@ -26,6 +26,7 @@ #include "CCString.h" #include "CCInteger.h" #include "platform/CCFileUtils.h" +#include // std::for_each using namespace std; diff --git a/cocos/base/CCMap.h b/cocos/base/CCMap.h index 36715ab4f1..823307d58b 100644 --- a/cocos/base/CCMap.h +++ b/cocos/base/CCMap.h @@ -27,6 +27,7 @@ THE SOFTWARE. #include #include +#include // std::for_each NS_CC_BEGIN diff --git a/cocos/base/CCVector.h b/cocos/base/CCVector.h index 4a51a43669..960b98cd48 100644 --- a/cocos/base/CCVector.h +++ b/cocos/base/CCVector.h @@ -26,7 +26,7 @@ THE SOFTWARE. #define __CCVECTOR_H__ #include -#include +#include // std::for_each #include "ccMacros.h" NS_CC_BEGIN