]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fundamental: move string includes from chid-fundamental.c to header
authoranonymix007 <48598263+anonymix007@users.noreply.github.com>
Wed, 6 Nov 2024 20:09:27 +0000 (23:09 +0300)
committeranonymix007 <48598263+anonymix007@users.noreply.github.com>
Thu, 7 Nov 2024 21:53:26 +0000 (00:53 +0300)
src/fundamental/chid-fundamental.c
src/fundamental/chid-fundamental.h

index 55b04fa2ab70df89498d225fe856865a045f3658..145bf408bc365ae40d41b1080443e48c8f77efd0 100644 (file)
  */
 
 #if SD_BOOT
-#  include "efi-string.h"
 #  include "util.h"
 #else
 #  include <byteswap.h>
 #  include <string.h>
-#  include <uchar.h>
 #  include <utf8.h>
 #define strsize16(str) ((char16_strlen(str) + 1) * sizeof(char16_t))
 #endif
index e8c5c1add285a49630478c93cb66d626dbf0608a..1e582932fd29335a0a71d0a8f1433c857dc3c366 100644 (file)
@@ -2,6 +2,12 @@
 
 #pragma once
 
+#if SD_BOOT
+#  include "efi-string.h"
+#else
+#  include <uchar.h>
+#endif
+
 #include "efi-fundamental.h"
 #include "string-util-fundamental.h"