for gc-7.1

This commit is contained in:
yshl
2015-04-26 18:38:08 +09:00
parent 324de85584
commit e0641028c7
+4
View File
@@ -419,7 +419,11 @@ main(int argc, char **argv, char **envp)
char **getimage_args = NULL;
#endif /* defined(DONT_CALL_GC_AFTER_FORK) && defined(USE_IMAGE) */
GC_INIT();
#if (GC_VERSION_MAJOR>=7) && (GC_VERSION_MINOR>=2)
GC_set_oom_fn(die_oom);
#else
GC_oom_fn = die_oom;
#endif
#if defined(ENABLE_NLS) || (defined(USE_M17N) && defined(HAVE_LANGINFO_CODESET))
setlocale(LC_ALL, "");
#endif