]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing_type: char16_t and char32_t are always defined in uchar.h since C11
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Feb 2025 15:08:35 +0000 (00:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 17:24:49 +0000 (02:24 +0900)
Now, we use C17, hence the fallback definitions can be dropped.

meson.build
src/basic/escape.h
src/basic/missing_type.h [deleted file]
src/basic/utf8.h

index a8876cfe01981520c1967074350c9096a1ce3de4..940210340163bfd24fdbd02975db9d455b12c11f 100644 (file)
@@ -569,11 +569,9 @@ decl_headers = '''
 #include <dirent.h>
 #include <sched.h>
 #include <sys/mount.h>
-#include <uchar.h>
 '''
 
-foreach decl : ['char16_t',
-                'char32_t',
+foreach decl : [
                 'struct mount_attr',
                 'struct dirent64',
                 'struct sched_attr',
index 224a795aa44995581738fce53ad58e88956c747f..05c27f688e3f1801109e17adc1c1109dc7a84569 100644 (file)
@@ -8,7 +8,6 @@
 #include <uchar.h>
 
 #include "string-util.h"
-#include "missing_type.h"
 
 /* What characters are special in the shell? */
 /* must be escaped outside and inside double-quotes */
diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h
deleted file mode 100644 (file)
index 1d17705..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#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 f6158b2ef101b40931d4583ec213fee8f92a174b..3b1a468c4f4f789c83617ea3ba55d26ddcd9352c 100644 (file)
@@ -7,7 +7,6 @@
 #include <uchar.h>
 
 #include "macro.h"
-#include "missing_type.h"
 
 #define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
 #define UTF8_BYTE_ORDER_MARK "\xef\xbb\xbf"