diff options
Diffstat (limited to 'Build/source/utils/asymptote/memory.h')
-rw-r--r-- | Build/source/utils/asymptote/memory.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/memory.h b/Build/source/utils/asymptote/memory.h index ccf0436c500..9bbbfd17530 100644 --- a/Build/source/utils/asymptote/memory.h +++ b/Build/source/utils/asymptote/memory.h @@ -171,7 +171,13 @@ typedef std::basic_ostringstream<char,std::char_traits<char>, gc_allocator<char> > ostringstream; typedef std::basic_stringbuf<char,std::char_traits<char>, gc_allocator<char> > stringbuf; +#if GC_TMP_VERSION_MAJOR >= 7 && GC_TMP_VERSION_MINOR > 1 +inline void compact(int x) {GC_set_dont_expand(x);} #else +inline void compact(int x) {GC_dont_expand=x;} +#endif +#else +inline void compact(int x) {} typedef std::string string; typedef std::stringstream stringstream; typedef std::istringstream istringstream; |