Commit 4331db3e authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita
parent 0b3230f8
......@@ -317,7 +317,11 @@ wrap_GC_warn_proc(char *msg, GC_word arg)
lock = 0;
}
}
#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
else if (orig_GC_warn_proc = GC_get_warn_proc())
#else
else if (orig_GC_warn_proc)
#endif
orig_GC_warn_proc(msg, arg);
else
fprintf(stderr, msg, (unsigned long)arg);
......@@ -845,7 +849,11 @@ main(int argc, char **argv, char **envp)
mySignal(SIGPIPE, SigPipe);
#endif
#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
GC_set_warn_proc(wrap_GC_warn_proc);
#else
orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
#endif
err_msg = Strnew();
if (load_argc == 0) {
/* no URL specified */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment