diff options
author | Kevin van der Vlist <kevin@kevinvandervlist.nl> | 2011-06-07 23:13:58 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-06-12 13:44:51 +0200 |
commit | 1eed84099a8ea6b7bec9167f19d865ab52d6695f (patch) | |
tree | 75d4bc6edd4de29bfa2cbe70fa7121527056850e /plugins/mms | |
parent | bded25b2bafd98fce08b6cdcd6276b3dcf508cbc (diff) |
OpenIndian b148 support (and perhaps other Solaris builds).
Diffstat (limited to 'plugins/mms')
-rw-r--r-- | plugins/mms/libmms/bswap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/mms/libmms/bswap.h b/plugins/mms/libmms/bswap.h index 6a6e1d10..7fe6db62 100644 --- a/plugins/mms/libmms/bswap.h +++ b/plugins/mms/libmms/bswap.h @@ -271,6 +271,17 @@ #define GINT16_TO_LE(val) (val) #endif +/* If this is not defined, we are on Solaris */ +#ifndef u_int16_t +#define u_int16_t uint16_t +#endif +#ifndef u_int32_t +#define u_int32_t uint32_t +#endif +#ifndef u_int64_t +#define u_int64_t uint64_t +#endif + #define LE_16(val) (GINT16_FROM_LE (*((u_int16_t*)(val)))) #define BE_16(val) (GINT16_FROM_BE (*((u_int16_t*)(val)))) #define LE_32(val) (GINT32_FROM_LE (*((u_int32_t*)(val)))) |