Move inttypes.h and stdint.h to stdlib.

inttypes.h and stdint.h are in sysdeps/generic, but there are no other
versions of these headers anywhere in the source tree, so they aren’t
actually system-dependent.  Move them to the subdirectory that
installs them (stdlib).

Reviewed-by: Joseph Myers <joseph@codesourcery.com>

	* sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
	Move to stdlib.
	* include/inttypes.h: Adjust to match.
	* include/stdint.h: New wrapper.
This commit is contained in:
Zack Weinberg 2019-03-11 10:59:45 -04:00
parent 711a322a23
commit 29218b265f
No known key found for this signature in database
GPG Key ID: E3E66319D48DBDB0
5 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2019-03-13 Zack Weinberg <zackw@panix.com>
* sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
Move to stdlib.
* include/inttypes.h: Adjust to match.
* include/stdint.h: New wrapper.
2019-03-13 Zack Weinberg <zackw@panix.com>
* scripts/check-obsolete-constructs.py: New test script.

View File

@ -1,5 +1,5 @@
#ifndef _INTTYPES_H
#include_next <inttypes.h>
#include <stdlib/inttypes.h>
#ifndef _ISOMAC
libc_hidden_proto (strtoumax)
#endif

1
include/stdint.h Normal file
View File

@ -0,0 +1 @@
#include <stdlib/stdint.h>