diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-30 22:10:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-30 22:10:33 +0000 |
commit | 3a628268d7abd1ff797edc1b76da13def62cb338 (patch) | |
tree | 3dd403736aec254bcea700887e0982013207c7bb /src/include/gnunet_common.h | |
parent | ec9338c28ca046638191baba9a7cc05a7a4dd28d (diff) | |
download | gnunet-3a628268d7abd1ff797edc1b76da13def62cb338.tar.gz gnunet-3a628268d7abd1ff797edc1b76da13def62cb338.zip |
-fix endian test
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 04847ee5b..d934c109e 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -66,6 +66,15 @@ | |||
66 | 66 | ||
67 | #define GNUNET_MAX(a,b) (((a) > (b)) ? (a) : (b)) | 67 | #define GNUNET_MAX(a,b) (((a) > (b)) ? (a) : (b)) |
68 | 68 | ||
69 | /* some systems use one underscore only... */ | ||
70 | #ifndef __BYTE_ORDER | ||
71 | #ifdef _BYTE_ORDER | ||
72 | #define __BYTE_ORDER _BYTE_ORDER | ||
73 | #define __LITTLE_ENDIAN _LITTLE_ENDIAN | ||
74 | #define __BIG_ENDIAN _BIG_ENDIAN | ||
75 | #endif | ||
76 | #endif | ||
77 | |||
69 | /** | 78 | /** |
70 | * Endian operations | 79 | * Endian operations |
71 | */ | 80 | */ |