]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi: drop glibc header and use pre-defined macros
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Jun 2021 20:55:05 +0000 (05:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Jun 2021 04:49:33 +0000 (13:49 +0900)
This reverts 72dc626b3d6905b105ae61ca2c60f51a6f74070e and replace glibc
specific macros with compiler's pre-defined macros.

src/boot/efi/sha256.c
src/boot/efi/sha256.h

index 2108ea29c7ac234a0788533a07c8d23826c54852..6585fdb9b2388f07eaff5e7e0685d3e3dc12b6ac 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "sha256.h"
 
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 # define SWAP(n)                                                        \
         (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
 # define SWAP64(n)                              \
index 3a43601e738522874a6e0ce6f7e2cc969d380bd7..464be59c2510ce33a0cc093476cd93a8e314f8de 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <endian.h>
-
 #include <efi.h>
 #include <efilib.h>