mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-12 10:44:12 -08:00
(__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
This commit is contained in:
parent
6b2154dedb
commit
efd241cc2d
1 changed files with 13 additions and 0 deletions
13
src/emacs.c
13
src/emacs.c
|
|
@ -183,6 +183,19 @@ extern noshare char **environ;
|
|||
#endif /* LINK_CRTL_SHARE */
|
||||
#endif /* VMS */
|
||||
|
||||
/* We don't include crtbegin.o and crtend.o in the link,
|
||||
so these functions and variables might be missed.
|
||||
Provide dummy definitions to avoid error.
|
||||
(We don't have any real constructors or destructors.) */
|
||||
#ifdef __GNUC__
|
||||
__do_clobal_ctors ()
|
||||
{}
|
||||
__do_clobal_ctors_aux ()
|
||||
{}
|
||||
char * __CTOR_LIST__[1] = { (char *) (-1) };
|
||||
char * __DTOR_LIST__[1] = { (char *) (-1) };
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
/* ARGSUSED */
|
||||
main (argc, argv, envp)
|
||||
int argc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue