compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStop
The system definition header files on HPE NonStop do not define intptr_t and uintptr_t as do other platforms. These typedefs are added specifically wrapped in a __TANDEM ifdef. Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Randall S. Becker committed
Jan 3, 2019 at 16:03 UTC
0bdaacf66fccaebb93726d47c8bec325ec3f3b76
1 file changed
+8
compat/regex/regcomp.c
+8
@@ -17,6 +17,14 @@
17
License along with the GNU C Library; if not, see
18
<http://www.gnu.org/licenses/>. */
19
20
+#if defined __TANDEM
21
+ /* This is currently duplicated from git-compat-utils.h */
22
+# ifdef NO_INTPTR_T
23
+ typedef long intptr_t;
24
+ typedef unsigned long uintptr_t;
25
+# endif
26
+#endif
27
+
28
static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
29
size_t length, reg_syntax_t syntax);
30
static void re_compile_fastmap_iter (regex_t *bufp,