summaryrefslogtreecommitdiff
path: root/utf8proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'utf8proc.h')
-rw-r--r--utf8proc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/utf8proc.h b/utf8proc.h
index 24a891b..3dac24d 100644
--- a/utf8proc.h
+++ b/utf8proc.h
@@ -60,16 +60,18 @@ typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
-#ifdef _WIN64
-#define ssize_t __int64
-#else
-#define ssize_t int
-#endif
+# ifdef _WIN64
+# define ssize_t __int64
+# else
+# define ssize_t int
+# endif
+# ifndef __cplusplus
typedef unsigned char bool;
enum {false, true};
+# endif
#else
-#include <stdbool.h>
-#include <inttypes.h>
+# include <stdbool.h>
+# include <inttypes.h>
#endif
#include <limits.h>