aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authoryshl <yshl@takechiyo.net>2015-04-26 09:38:08 +0000
committeryshl <yshl@takechiyo.net>2015-04-26 09:38:08 +0000
commite0641028c73c38e000c1259583b3f898928211c4 (patch)
tree0ef6ecc6d5908327bbdeb4d2f2cc87ec4b88100d /main.c
parentUpdate ChangeLog (diff)
downloadw3m-e0641028c73c38e000c1259583b3f898928211c4.tar.gz
w3m-e0641028c73c38e000c1259583b3f898928211c4.zip
for gc-7.1
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index d37b243..8f418ce 100644
--- a/main.c
+++ b/main.c
@@ -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