diff --git a/include/byteorder.h b/include/byteorder.h
index 56bb7efb629adabb419829379fdfddb0453bbf32..d299ac944fb104420b740cb1573edc3347996137 100644
--- a/include/byteorder.h
+++ b/include/byteorder.h
@@ -53,13 +53,13 @@
 #undef __LITTLE_ENDIAN
 #endif
 
-#if (__sparc__)
+#if defined __sparc__
 #ifndef __BIG_ENDIAN
 #define __BIG_ENDIAN 4321
 #endif
 #endif
 
-#if (__i386__ || __x86_64__)
+#if (defined __i386__ || defined __x86_64__)
 #ifndef __LITTLE_ENDIAN
 #define __LITTLE_ENDIAN 1234
 #endif