aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/endian.h')
-rw-r--r--src/include/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/endian.h b/src/include/endian.h
index 79c3163ee..bdae9de45 100644
--- a/src/include/endian.h
+++ b/src/include/endian.h
@@ -8,14 +8,18 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
* Little-endian systems should define BYTE_ORDER as LITTLE_ENDIAN.
* This constant is intended to be used only at compile time.
*/
+#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN 0x44332211UL
+#endif
/** Constant representing big-endian byte order
*
* Big-endian systems should define BYTE_ORDER as BIG_ENDIAN.
* This constant is intended to be used only at compile time.
*/
+#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN 0x11223344UL
+#endif
#include "bits/endian.h"