diff options
Diffstat (limited to 'include/new_gc_alloc.h')
-rw-r--r-- | include/new_gc_alloc.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/new_gc_alloc.h b/include/new_gc_alloc.h index 1187f0b6..aad94465 100644 --- a/include/new_gc_alloc.h +++ b/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 |