aboutsummaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/types.h b/include/types.h
index be217df69..0a2d8752f 100644
--- a/include/types.h
+++ b/include/types.h
@@ -44,9 +44,9 @@
#ifndef HAVE_U16_TYPEDEF
#undef u16 /* maybe there is a macro with this name */
- #if SIZEOF_UNSIGNED_INT == 16
+ #if SIZEOF_UNSIGNED_INT == 2
typedef unsigned int u16;
- #elif SIZEOF_UNSIGNED_SHORT == 16
+ #elif SIZEOF_UNSIGNED_SHORT == 2
typedef unsigned short u16;
#else
#error no typedef for u16
@@ -56,9 +56,9 @@
#ifndef HAVE_U32_TYPEDEF
#undef u32 /* maybe there is a macro with this name */
- #if SIZEOF_UNSIGNED_INT == 32
+ #if SIZEOF_UNSIGNED_INT == 4
typedef unsigned long u32;
- #elif SIZEOF_UNSIGNED_LONG == 32
+ #elif SIZEOF_UNSIGNED_LONG == 4
typedef unsigned int u32;
#else
#error no typedef for u32