From e69e4ae6db7ff64617c4f946ed4fa2bbfd401790 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sun, 3 Oct 1999 21:47:11 +0000 Subject: [PATCH] added more GC stub functions, so that NSStdLib can export them. r=smfr --- lib/mac/NSStartup/NSStartup.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/mac/NSStartup/NSStartup.c b/lib/mac/NSStartup/NSStartup.c index 34e3aa609bd7..15ef1fef6390 100644 --- a/lib/mac/NSStartup/NSStartup.c +++ b/lib/mac/NSStartup/NSStartup.c @@ -25,6 +25,7 @@ */ #include +#include extern char __code_start__[]; /* (defined by linker) */ extern char __code_end__[]; /* (defined by linker) */ @@ -58,8 +59,13 @@ pascal void __NSTerminate() } #ifndef GC_LEAK_DETECTOR -// stub implementations, when GC leak detection isn't on. +// stub implementations, when GC leak detection isn't on. these are needed so that +// NSStdLib has something to export for these functions, even when the GC isn't used. void GC_add_roots(char *begin, char *end) {} void GC_remove_roots(char *begin, char *end) {} +void GC_clear_roots() {} +void GC_generic_init_threads() {} +void GC_gcollect() {} +FILE* gc_stdout = NULL; +FILE* GC_stderr = NULL; #endif -