diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2014-07-18 11:47:24 -0400 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2014-07-18 11:47:24 -0400 |
commit | dd35a8530d4274ce7c4c0c080a66b283141b9454 (patch) | |
tree | 57cfc2da2dfdeca54fa041e1fbe5b9e23a9b1805 /utf8proc.h | |
parent | 48645e36e4e07d550cf5f410ec254c7a03937e6a (diff) | |
download | libutf8proc-dd35a8530d4274ce7c4c0c080a66b283141b9454.tar.gz libutf8proc-dd35a8530d4274ce7c4c0c080a66b283141b9454.tar.bz2 |
C++/MSVC compatibility, indenting, for #4
Diffstat (limited to 'utf8proc.h')
-rw-r--r-- | utf8proc.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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> |