Browse Source

include stdint.h and check __intptr_t_defined to see if we need to setup uintptr_t

Mike Frysinger 18 years ago
parent
commit
1ecf6c3708
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libc/misc/regex/regex_old.c

+ 2 - 1
libc/misc/regex/regex_old.c

@@ -31,6 +31,7 @@
 # define RE_TRANSLATE_TYPE char *
 #endif
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 #include <stdio.h>
 
@@ -331,7 +332,7 @@ init_syntax_once ()
 # endif /* emacs */
 
 /* Integer type for pointers.  */
-# if !defined _LIBC
+# if !defined _LIBC && !defined __intptr_t_defined
 typedef unsigned long int uintptr_t;
 # endif