From 6a876e1fc942f2dfed0eb76d690e3dd92dc757f7 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 17 Feb 2011 16:40:56 +0000 Subject: [PATCH] removed warnings due to deprecated hash map usage --- vcg/space/index/spatial_hashing.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/spatial_hashing.h b/vcg/space/index/spatial_hashing.h index f2a2f7d6..cbf52cea 100644 --- a/vcg/space/index/spatial_hashing.h +++ b/vcg/space/index/spatial_hashing.h @@ -37,9 +37,16 @@ #include #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 was deprecated and generate warnings. Relax Deprecation Just for this... + #define ___WE_UNDEFINED_DEPRECATED__ +#endif #include #define STDEXT __gnu_cxx +#if defined(___WE_UNDEFINED_DEPRECATED__) +#define __DEPRECATED +#endif #endif