Fixed: Compilation under GCC 4.8.4

--HG--
branch : develop
This commit is contained in:
kervala 2017-06-23 17:20:21 +02:00
parent 1aa708c4de
commit d39f91d5d3

View file

@ -24,6 +24,11 @@ using namespace NLMISC;
#define new DEBUG_NEW #define new DEBUG_NEW
#endif #endif
#if defined(GCC_VERSION) && !defined(CLANG_VERSION) && defined(NL_ISO_CPP0X_AVAILABLE) && (GCC_VERSION <= 40804)
// hack to fix std::map::erase wrong return type (void instead of iterator in C++11) in GCC 4.8.4
#undef NL_ISO_CPP0X_AVAILABLE
#endif
namespace NLGUI namespace NLGUI
{ {
CHttpCache* CHttpCache::instance = NULL; CHttpCache* CHttpCache::instance = NULL;