summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.h
diff options
context:
space:
mode:
authorSol Boucher <solb@chromium.org>2015-05-07 21:00:05 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-07-16 17:38:57 +0200
commit158dd5527cff6864a0de42a65902a9d07f7d8b47 (patch)
treeccfa5c4973073571058eadab1afed6ff72f249d2 /util/cbfstool/common.h
parentc569b8bfdc012be61118bc92e86ddbbf2f804b78 (diff)
downloadcoreboot-158dd5527cff6864a0de42a65902a9d07f7d8b47.tar.xz
cbfstool: move bit swapping macros to swab.h
Change-Id: Id22232c45225011951e01c370e0f473af574d758 Signed-off-by: Sol Boucher <solb@chromium.org> Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Change-Id: I1a117a9473e895feaf455bb30d0f945f57de51eb Original-Signed-off-by: Sol Boucher <solb@chromium.org> Reviewed-on: http://review.coreboot.org/10929 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/common.h')
-rw-r--r--util/cbfstool/common.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index 06ee00b39b..5fb19065df 100644
--- a/util/cbfstool/common.h
+++ b/util/cbfstool/common.h
@@ -28,15 +28,6 @@
/* Endianess */
#include "swab.h"
-#if !defined(__APPLE__) && !defined(__NetBSD__)
-#define ntohl(x) (is_big_endian() ? (uint32_t)(x) : swab32(x))
-#define htonl(x) (is_big_endian() ? (uint32_t)(x) : swab32(x))
-#elif defined(__NetBSD__)
-#include <arpa/inet.h>
-#endif
-#define ntohll(x) (is_big_endian() ? (uint64_t)(x) : swab64(x))
-#define htonll(x) (is_big_endian() ? (uint64_t)(x) : swab64(x))
-int is_big_endian(void);
/* Message output */
extern int verbose;