]> Savannah Git Hosting - gnulib.git/commit
stdlib: support including stdlib.h from config.h
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Dec 2024 21:41:04 +0000 (13:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Dec 2024 21:41:24 +0000 (13:41 -0800)
commit0f5245ac61490dd05dec8eb683d371c127bb860f
tree6e7899e3c4777e63e90ddd47568bed53712f5e42
parentd4c25e8756d5ef5a43ee90fd9770040cd224204c
stdlib: support including stdlib.h from config.h

Emacs <config.h> includes <stdlib.h> in some situations, causing
problems on macOS as described by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2024-12/msg00923.html
Although this usage is not recommended, it is easier to support
it for POSIX-required headers, than to fix Emacs.
* doc/extern-inline.texi (extern inline): Document the Emacs problem.
* lib/endian.c, lib/math.c, lib/stdbit.c, lib/stdlib.c:
* lib/sys_socket.c, lib/unistd.c, lib/wctype-h.c:
Define #define _GL_..._INLINE to _GL_EXTERN_INLINE
before including <config.h>, not merely before including
the .h file that defines the inline function.
ChangeLog
doc/extern-inline.texi
lib/endian.c
lib/math.c
lib/stdbit.c
lib/stdlib.c
lib/sys_socket.c
lib/unistd.c
lib/wctype-h.c