aboutsummaryrefslogtreecommitdiffstats
path: root/libwc
diff options
context:
space:
mode:
Diffstat (limited to 'libwc')
-rw-r--r--libwc/wc_types.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libwc/wc_types.h b/libwc/wc_types.h
index 981c8d4..845bf2f 100644
--- a/libwc/wc_types.h
+++ b/libwc/wc_types.h
@@ -3,11 +3,23 @@
#define _WC_TYPES_H
#include <Str.h>
+#include <config.h>
+#if defined(HAVE_STDINT_H)
+# include <stdint.h>
+#elif defined(HAVE_INTTYPES_H)
+# include <inttypes.h>
+#endif
typedef unsigned char wc_uchar;
+#if defined(HAVE_STDINT_H) || defined(HAVE_INTTYPES_H)
+typedef uint8_t wc_uint8;
+typedef uint16_t wc_uint16;
+typedef uint32_t wc_uint32;
+#else
typedef unsigned char wc_uint8;
typedef unsigned short wc_uint16;
typedef unsigned long wc_uint32;
+#endif
typedef wc_uint32 wc_ccs;
typedef wc_uint32 wc_ces;