summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/memory.h')
-rw-r--r--Build/source/utils/asymptote/memory.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/Build/source/utils/asymptote/memory.h b/Build/source/utils/asymptote/memory.h
index 495bed6c123..d29b117855e 100644
--- a/Build/source/utils/asymptote/memory.h
+++ b/Build/source/utils/asymptote/memory.h
@@ -14,33 +14,28 @@
#include <string>
#include <sstream>
-#if defined __GNUC__ && defined __GNUC_MINOR__
-# define PREREQ(maj,min) \
- ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
-#else
-# define PREREQ(maj,min) 1
-#endif
-
#ifndef NOHASH
-#if PREREQ(4,3) || defined(__CYGWIN__)
-#if __cplusplus >= 201103L
+#ifdef HAVE_UNORDERED_MAP
+
#include <memory>
#include <unordered_map>
#define EXT std
+
#else
+
+#ifdef HAVE_TR1_UNORDERED_MAP
#include <tr1/unordered_map>
#define EXT std::tr1
-#endif
-
#else
-
#define EXT __gnu_cxx
#include <ext/hash_map>
#define unordered_map hash_map
#define unordered_multimap hash_multimap
+#endif
#endif
+
#endif
#ifdef __DECCXX_LIBCXX_RH70