Changed: #845 Don't check for MS STL headers if STLport is used

This commit is contained in:
kervala 2010-05-07 12:43:01 +02:00
parent 680e5b553c
commit d7787d09a0

View file

@ -52,9 +52,11 @@
# if _MSC_VER >= 1500 # if _MSC_VER >= 1500
# define NL_COMP_VC9 # define NL_COMP_VC9
# include <string> // This way we know about _HAS_TR1 :O # include <string> // This way we know about _HAS_TR1 :O
# if defined(_HAS_TR1) && (_HAS_TR1 + 0) // VC9 TR1 feature pack # ifndef _STLPORT_VERSION // STLport doesn't depend on MS STL features
# define NL_ISO_STDTR1_AVAILABLE # if defined(_HAS_TR1) && (_HAS_TR1 + 0) // VC9 TR1 feature pack
# define NL_ISO_STDTR1_HEADER(header) <header> # define NL_ISO_STDTR1_AVAILABLE
# define NL_ISO_STDTR1_HEADER(header) <header>
# endif
# endif # endif
# elif _MSC_VER >= 1400 # elif _MSC_VER >= 1400
# define NL_COMP_VC8 # define NL_COMP_VC8
@ -262,14 +264,18 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
#ifndef NL_ISO_STDTR1_AVAILABLE #ifndef NL_ISO_STDTR1_AVAILABLE
# include <hash_map> # include <hash_map>
# include <hash_set> # include <hash_set>
# if defined(NL_COMP_VC7) || defined(NL_COMP_VC71) || defined(NL_COMP_VC8) || defined(NL_COMP_VC9) // VC7 through 9 # ifdef _STLP_HASH_MAP
# define CHashMap stdext::hash_map
# define CHashSet stdext::hash_set
# define CHashMultiMap stdext::hash_multimap
# else // MSVC6
# define CHashMap ::std::hash_map # define CHashMap ::std::hash_map
# define CHashSet ::std::hash_set # define CHashSet ::std::hash_set
# define CHashMultiMap ::std::hash_multimap # define CHashMultiMap ::std::hash_multimap
# pragma message("Using STLport")
# elif defined(NL_COMP_VC7) || defined(NL_COMP_VC71) || defined(NL_COMP_VC8) || defined(NL_COMP_VC9) // VC7 through 9
# define CHashMap stdext::hash_map
# define CHashSet stdext::hash_set
# define CHashMultiMap stdext::hash_multimap
# pragma message("Using MS STL")
# else
# pragma error("You need to update your compiler")
# endif # endif
#endif // NL_ISO_STDTR1_AVAILABLE #endif // NL_ISO_STDTR1_AVAILABLE
@ -331,6 +337,7 @@ template<> struct hash<uint64>
# define CHashMap std::tr1::unordered_map # define CHashMap std::tr1::unordered_map
# define CHashSet std::tr1::unordered_set # define CHashSet std::tr1::unordered_set
# define CHashMultiMap std::tr1::unordered_multimap # define CHashMultiMap std::tr1::unordered_multimap
# pragma message("Using TR1 extensions")
#endif #endif
/** /**