00001
00002
00003
00004
00005 #ifndef SGI_HASHMAP_H
00006 #define SGI_HASHMAP_H
00007
00008
00009
00010 #ifdef __GNUC__
00011 #if __GNUC__ < 3
00012 #include <hash_map.h>
00013 namespace sgi { using ::hash_map; };
00014 #else
00015 #if __GNUC__ < 4
00016 #include <ext/hash_map>
00017 #if __GNUC_MINOR__ == 0
00018 namespace sgi = std;
00019 #else
00020 namespace sgi = ::__gnu_cxx;
00021 #endif
00022 #else // gcc 4.x and later
00023 #if __GNUC_MINOR__ < 3
00024 #include <ext/hash_map>
00025 namespace sgi = ::__gnu_cxx;
00026 #else
00027 #undef __DEPRECATED
00028 #include <backward/hash_map>
00029 namespace sgi = ::__gnu_cxx;
00030 #endif
00031 #endif
00032 #endif
00033 #else // ... there are other compilers, right?
00034 namespace sgi = std;
00035 #endif
00036
00037
00038 #endif