Skip to content

Commit

Permalink
compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStop
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
rsbeckerca authored and dscho committed Jan 13, 2024
1 parent 8ca2ccc commit b3728e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compat/regex/regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
# include <locale/weight.h>
#endif

#if defined __TANDEM
/* This is currently duplicated from git-compat-utils.h */
# ifdef NO_INTPTR_T
typedef long intptr_t;
typedef unsigned long uintptr_t;
# endif
#endif

static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
size_t length, reg_syntax_t syntax);
static void re_compile_fastmap_iter (regex_t *bufp,
Expand Down

0 comments on commit b3728e3

Please sign in to comment.