summaryrefslogtreecommitdiff
path: root/usr/src/test
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2016-07-25 11:46:39 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2016-07-25 11:46:39 +0000
commitfc4c8a6f3e101c3b4282926f35a2c8b26cde8a33 (patch)
tree9a91c193d87f9daa1e2359527ce90f89a35deed6 /usr/src/test
parent8040f525a5e0fefc7427bbe63f8f09e746ef0687 (diff)
parentcc366bfc297550eb10cd5f677d98c8d206eca4f1 (diff)
downloadillumos-joyent-fc4c8a6f3e101c3b4282926f35a2c8b26cde8a33.tar.gz
[illumos-gate merge]
commit cc366bfc297550eb10cd5f677d98c8d206eca4f1 7038 users of endian.h expect __ prefixed versions of macros 7043 endian.h uses bad macros for _BIG_ENDIAN commit cda73f64f20b8a0afc4909f5ea1f055ec7913856 7139 Sync mDNS with mDNSResponder-625.41.2 commit 6da83bb0b886fae280a129718d645576517b62c6 7203 unlinking a directory on tmpfs does not remove the directory entries
Diffstat (limited to 'usr/src/test')
-rw-r--r--usr/src/test/libc-tests/tests/endian.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/test/libc-tests/tests/endian.c b/usr/src/test/libc-tests/tests/endian.c
index 1165ad773d..dcf0bdfdb5 100644
--- a/usr/src/test/libc-tests/tests/endian.c
+++ b/usr/src/test/libc-tests/tests/endian.c
@@ -39,14 +39,14 @@ endian_fromhost(void)
uint32_t ebe32, ele32, test32;
uint64_t ebe64, ele64, test64;
-#ifdef _LITTLE_ENDIAN
+#if defined(_LITTLE_ENDIAN)
ebe16 = 0x2211;
ebe32 = 0x44332211UL;
ebe64 = 0x8877665544332211ULL;
ele16 = 0x1122;
ele32 = 0x11223344UL;
ele64 = 0x1122334455667788ULL;
-#elif _BIG_ENDIAN
+#elif defined(_BIG_ENDIAN)
ele16 = 0x2211;
ele32 = 0x44332211UL;
ele64 = 0x8877665544332211ULL;
@@ -82,11 +82,11 @@ endian_frombig(void)
uint32_t e32, test32;
uint64_t e64, test64;
-#ifdef _LITTLE_ENDIAN
+#if defined(_LITTLE_ENDIAN)
e16 = 0x2211;
e32 = 0x44332211UL;
e64 = 0x8877665544332211ULL;
-#elif _BIG_ENDIAN
+#elif defined(_BIG_ENDIAN)
e16 = 0x1122;
e32 = 0x11223344UL;
e64 = 0x1122334455667788ULL;
@@ -120,11 +120,11 @@ endian_fromlittle(void)
uint32_t e32, test32;
uint64_t e64, test64;
-#ifdef _LITTLE_ENDIAN
+#if defined(_LITTLE_ENDIAN)
e16 = 0x1122;
e32 = 0x11223344UL;
e64 = 0x1122334455667788ULL;
-#elif _BIG_ENDIAN
+#elif defined(_BIG_ENDIAN)
e16 = 0x2211;
e32 = 0x44332211UL;
e64 = 0x8877665544332211ULL;