]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: move char{16,32}_t definitions to missing_type.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 4 Dec 2018 07:08:15 +0000 (08:08 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 4 Dec 2018 07:38:18 +0000 (08:38 +0100)
src/basic/escape.h
src/basic/meson.build
src/basic/missing.h
src/basic/missing_type.h [new file with mode: 0644]
src/basic/utf8.h

index 2e07c73b9ede8236ee0e230fccda48ef9c2835ca..515620993d051b4df03074acf3f5736937053ee0 100644 (file)
@@ -8,7 +8,7 @@
 #include <uchar.h>
 
 #include "string-util.h"
-#include "missing.h"
+#include "missing_type.h"
 
 /* What characters are special in the shell? */
 /* must be escaped outside and inside double-quotes */
index 8670bc962f34d278449acb9d8f8b340a96ec4210..153a38f9d050074726c194aa15b528594b496856 100644 (file)
@@ -108,6 +108,7 @@ basic_sources = files('''
         missing_securebits.h
         missing_stat.h
         missing_syscall.h
+        missing_type.h
         missing_vxcan.h
         mkdir-label.c
         mkdir.c
index 0f3c59d8971aeaadbfcbbee10dda22beab40476a..e3ee46bccea3a407dcbe6e363242824dc933cf2c 100644 (file)
@@ -14,7 +14,6 @@
 #include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/syscall.h>
-#include <uchar.h>
 #include <unistd.h>
 
 #if HAVE_AUDIT
@@ -278,14 +277,6 @@ struct sockaddr_vm {
 #define KCMP_FILE 0
 #endif
 
-#if !HAVE_CHAR32_T
-#define char32_t uint32_t
-#endif
-
-#if !HAVE_CHAR16_T
-#define char16_t uint16_t
-#endif
-
 #ifndef ETHERTYPE_LLDP
 #define ETHERTYPE_LLDP 0x88cc
 #endif
@@ -331,5 +322,6 @@ struct sockaddr_vm {
 #include "missing_magic.h"
 #include "missing_network.h"
 #include "missing_prctl.h"
+#include "missing_type.h"
 
 #include "missing_syscall.h"
diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h
new file mode 100644 (file)
index 0000000..bf8a6ca
--- /dev/null
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
+
+#include <uchar.h>
+
+#if !HAVE_CHAR32_T
+#define char32_t uint32_t
+#endif
+
+#if !HAVE_CHAR16_T
+#define char16_t uint16_t
+#endif
index 3de798050d6f89d0b9bb01246326518b7efcf981..628456936eb31b3a9ba972d0e5473f85ec41a4b9 100644 (file)
@@ -7,7 +7,7 @@
 #include <uchar.h>
 
 #include "macro.h"
-#include "missing.h"
+#include "missing_type.h"
 
 #define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
 #define UTF8_BYTE_ORDER_MARK "\xef\xbb\xbf"