Move inttypes.h and stdint.h to stdlib.
authorZack Weinberg <zackw@panix.com>
Mon, 11 Mar 2019 14:59:45 +0000 (10:59 -0400)
committerZack Weinberg <zackw@panix.com>
Wed, 13 Mar 2019 13:42:09 +0000 (09:42 -0400)
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.

ChangeLog
include/inttypes.h
include/stdint.h [new file with mode: 0644]
stdlib/inttypes.h [moved from sysdeps/generic/inttypes.h with 100% similarity]
stdlib/stdint.h [moved from sysdeps/generic/stdint.h with 100% similarity]

index 9ff1949..d616178 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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.
        * scripts/check-installed-headers.sh: Remove tests for
        obsolete typedefs, superseded by check-obsolete-constructs.py.
index 33219e2..3a583c6 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef _INTTYPES_H
-#include_next <inttypes.h>
+#include <stdlib/inttypes.h>
 #ifndef _ISOMAC
 libc_hidden_proto (strtoumax)
 #endif
diff --git a/include/stdint.h b/include/stdint.h
new file mode 100644 (file)
index 0000000..7f42874
--- /dev/null
@@ -0,0 +1 @@
+#include <stdlib/stdint.h>
similarity index 100%
rename from sysdeps/generic/inttypes.h
rename to stdlib/inttypes.h
similarity index 100%
rename from sysdeps/generic/stdint.h
rename to stdlib/stdint.h