From 46e65b73dead08a6f008db4c7e8b2647a9b9ac56 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 22 Mar 1994 20:18:06 +0000 Subject: [PATCH] (__do_global_ctors, __do_global_ctors_aux) (__do_global_dtors): Don't define if GCC_CTORS_IN_LIBC. (__CTOR_LIST__, __DTOR_LIST__): Likewise. --- src/emacs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emacs.c b/src/emacs.c index 1a581d4e2cc..34b98f07119 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -318,6 +318,7 @@ extern noshare char **environ; Provide dummy definitions to avoid error. (We don't have any real constructors or destructors.) */ #ifdef __GNUC__ +#ifndef GCC_CTORS_IN_LIBC __do_global_ctors () {} __do_global_ctors_aux () @@ -329,6 +330,7 @@ __do_global_dtors () char * __CTOR_LIST__[2] = { (char *) (-1), 0 }; #endif char * __DTOR_LIST__[2] = { (char *) (-1), 0 }; +#endif /* GCC_CTORS_IN_LIBC */ __main () {} #endif /* __GNUC__ */ -- 2.39.5