From cab22cae2addcbfaa42621440bd7cb4b1a56c84f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 3 Jun 2021 05:55:05 +0900 Subject: [PATCH] efi: drop glibc header and use pre-defined macros This reverts 72dc626b3d6905b105ae61ca2c60f51a6f74070e and replace glibc specific macros with compiler's pre-defined macros. (cherry picked from commit ffc36c276c47a9b3f21e83947090f11039628676) --- src/boot/efi/sha256.c | 2 +- src/boot/efi/sha256.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/boot/efi/sha256.c b/src/boot/efi/sha256.c index 2108ea29c7..6585fdb9b2 100644 --- a/src/boot/efi/sha256.c +++ b/src/boot/efi/sha256.c @@ -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) \ diff --git a/src/boot/efi/sha256.h b/src/boot/efi/sha256.h index 3a43601e73..464be59c25 100644 --- a/src/boot/efi/sha256.h +++ b/src/boot/efi/sha256.h @@ -1,8 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once -#include - #include #include -- 2.25.1