]> git.ipfire.org Git - thirdparty/make.git/commit
* all: Sanitize include file order for source files.
authorPaul Smith <psmith@gnu.org>
Thu, 21 Aug 2025 20:51:36 +0000 (16:51 -0400)
committerPaul Smith <psmith@gnu.org>
Thu, 21 Aug 2025 20:51:36 +0000 (16:51 -0400)
commitcf6e11c2f5f805742eade95d28fb243cf947ef1d
tree57c13129de0265c6708d80f07f6566c829392800
parent63961d5d0905f69c59b44652fd33ac932f7d1c23
* all: Sanitize include file order for source files.

Avoid warnings due to use of unreserved symbols in system headers
(primarily on Windows) by using this order of #include in .c files:
- First include makeint.h
- Next include the header for this .c file (if one exists)
- Next include all system header files
- Lastly include any other GNU Make headers, in alphabetical order
23 files changed:
src/ar.c
src/commands.c
src/default.c
src/dir.c
src/expand.c
src/file.c
src/function.c
src/guile.c
src/hash.c
src/implicit.c
src/job.c
src/loadapi.c
src/main.c
src/misc.c
src/output.c
src/read.c
src/remake.c
src/remote-cstms.c
src/remote-stub.c
src/rule.c
src/variable.c
src/vpath.c
src/warning.c