efi: drop glibc header and use pre-defined macros

This reverts 72dc626b3d and replace glibc
specific macros with compiler's pre-defined macros.
This commit is contained in:
Yu Watanabe
2021-06-03 13:49:33 +09:00
parent 2255e8adee
commit ffc36c276c
2 changed files with 1 additions and 3 deletions
+1 -1
View 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) \
-2
View File
@@ -1,8 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <endian.h>
#include <efi.h>
#include <efilib.h>