aboutsummaryrefslogtreecommitdiffstats
path: root/gc/include/new_gc_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gc/include/new_gc_alloc.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/gc/include/new_gc_alloc.h b/gc/include/new_gc_alloc.h
index 1187f0b..aad9446 100644
--- a/gc/include/new_gc_alloc.h
+++ b/gc/include/new_gc_alloc.h
@@ -50,7 +50,20 @@
#ifndef GC_ALLOC_H
#include "gc.h"
-#include <stack> // A more portable way to get stl_alloc.h .
+
+#if (__GNUC__ < 3)
+# include <stack> // A more portable way to get stl_alloc.h .
+#else
+# include <bits/stl_alloc.h>
+# ifndef __STL_BEGIN_NAMESPACE
+# define __STL_BEGIN_NAMESPACE namespace std {
+# define __STL_END_NAMESPACE };
+# endif
+#ifndef __STL_USE_STD_ALLOCATORS
+#define __STL_USE_STD_ALLOCATORS
+#endif
+#endif
+
#define GC_ALLOC_H