summaryrefslogtreecommitdiff
path: root/src/include/swab.h
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-11-01 11:29:50 +0100
committerNico Huber <nico.h@gmx.de>2018-11-01 11:25:07 +0000
commitc4e41937150beab78ba5d492b7b22799d20a0ee4 (patch)
treef8248eb3b2988bc5d3384b96f87bb848f6876134 /src/include/swab.h
parent1956a00953d8eac277b0eb508fcfe60c8f4e1141 (diff)
downloadcoreboot-c4e41937150beab78ba5d492b7b22799d20a0ee4.tar.xz
src: Add missing include <stdint.h>
Change-Id: Idf10a09745756887a517da4c26db7a90a1bf9543 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/29403 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/include/swab.h')
-rw-r--r--src/include/swab.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/swab.h b/src/include/swab.h
index 7d781a089e..956cfa5532 100644
--- a/src/include/swab.h
+++ b/src/include/swab.h
@@ -1,6 +1,3 @@
-#ifndef _SWAB_H
-#define _SWAB_H
-
/*
* linux/byteorder/swab.h
* Byte-swapping, independently from CPU endianness
@@ -18,6 +15,12 @@
/* casts are necessary for constants, because we never know how for sure
* how U/UL/ULL map to __u16, __u32, __u64. At least not in a portable way.
*/
+
+#ifndef _SWAB_H
+#define _SWAB_H
+
+#include <stdint.h>
+
#define swab16(x) \
((unsigned short)( \
(((unsigned short)(x) & (unsigned short)0x00ffU) << 8) | \