removed warnings due to deprecated hash map usage

This commit is contained in:
Paolo Cignoni 2011-02-17 16:40:56 +00:00
parent 4c1a6502b2
commit 6a876e1fc9
1 changed files with 8 additions and 1 deletions

View File

@ -37,9 +37,16 @@
#include <ext/hash_map>
#define STDEXT __gnu_cxx
#endif
#else
#else // We are in the *nix gcc branch
#if (__GNUC__ ==4) && (__GNUC_MINOR__ > 3) && (defined(__DEPRECATED))
#undef __DEPRECATED // since gcc 4.4 <ext/hash_map> was deprecated and generate warnings. Relax Deprecation Just for this...
#define ___WE_UNDEFINED_DEPRECATED__
#endif
#include <ext/hash_map>
#define STDEXT __gnu_cxx
#if defined(___WE_UNDEFINED_DEPRECATED__)
#define __DEPRECATED
#endif
#endif