diff options
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h index e5804be66..41adbbbd8 100644 --- a/include/types.h +++ b/include/types.h @@ -66,6 +66,20 @@ #define HAVE_U32_TYPEDEF #endif +#ifndef HAVE_U64_TYPEDEF + #undef u64 /* maybe there is a macro with this name */ + #if SIZEOF_UNSIGNED_INT == 8 + typedef unsigned int u64; + #define HAVE_U64_TYPEDEF + #elif SIZEOF_UNSIGNED_LONG == 8 + typedef unsigned long u64; + #define HAVE_U64_TYPEDEF + #elif __GNUC__ >= 2 + typedef unsigned long long u64; + #define HAVE_U64_TYPEDEF + #endif +#endif + |