From dd35a8530d4274ce7c4c0c080a66b283141b9454 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 18 Jul 2014 11:47:24 -0400 Subject: C++/MSVC compatibility, indenting, for #4 --- utf8proc.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'utf8proc.h') 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 -#include +# include +# include #endif #include -- cgit v1.2.3