From 70334e3605cde93fb830d3691d98fcab4d8298ce Mon Sep 17 00:00:00 2001 From: yshl Date: Sat, 2 May 2015 10:42:35 +0900 Subject: correct GC version confirmation --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 8f418ce..12135ce 100644 --- a/main.c +++ b/main.c @@ -419,7 +419,7 @@ 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) +#if (GC_VERSION_MAJOR>7) || ((GC_VERSION_MAJOR==7) && (GC_VERSION_MINOR>=2)) GC_set_oom_fn(die_oom); #else GC_oom_fn = die_oom; -- cgit v1.2.3