Mail Archives: djgpp/2020/12/10/13:29:42
> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
> Date: Thu, 10 Dec 2020 20:44:01 +0300
>
> --- src/debug/fsdb/makefile 27 Sep 1998 17:04:26 -0000 1.3
> +++ src/debug/fsdb/makefile 10 Dec 2020 17:39:43 -0000
> @@ -12,6 +12,9 @@ EOBJS += unassmbl.o
>
> include $(TOP)/../makefile.inc
>
> +#see screen.h as to why this is needed
> +CFLAGS += -fcommon
> +
This part looks OK.
> --- src/libc/ansi/stdlib/exit.c 2 May 2015 07:32:10 -0000 1.9
> +++ src/libc/ansi/stdlib/exit.c 10 Dec 2020 17:39:43 -0000
> @@ -15,7 +15,7 @@
>
> struct __atexit *__atexit_ptr = 0;
>
> -void (*__stdio_cleanup_hook)(void);
> +extern void (*__stdio_cleanup_hook)(void); /* stdio/stdiohk.c */
This part I don't understand: are you saying that it is no longer the
default that a function not explicitly declared 'static' has the
external linkage? Why do we need an explicit 'extern' qualifier?
Thanks.
- Raw text -