From a5035ad962e98030e63ac6682799115666bbb979 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 22 May 2014 16:30:09 +0800 Subject: [PATCH] safer uint define --- include/r3.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/r3.h b/include/r3.h index 41327fe..b6f26a0 100644 --- a/include/r3.h +++ b/include/r3.h @@ -16,7 +16,13 @@ #include "r3_define.h" #include "str_array.h" + +#ifdef HAVE_STDINT_H #include +#else +typedef __int32 int32_t; +typedef unsigned __int32 uint32_t; +#endif #define node_edge_pattern(node,i) node->edges[i]->pattern #define node_edge_pattern_len(node,i) node->edges[i]->pattern_len