Skip to content

Commit

Permalink
Merge pull request #790 from Jehops/extern_C
Browse files Browse the repository at this point in the history
Specify re_comp and re_exec function names with 'C' linkage
  • Loading branch information
stevenweaver authored May 10, 2018
2 parents edbca67 + 054b7ff commit 9e9709e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/gnuregex.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
unsigned num_regs, regoff_t *starts, regoff_t *ends));

/* 4.2 bsd compatibility. */
extern char *re_comp _RE_ARGS ((const char *));
extern int re_exec _RE_ARGS ((const char *));
extern "C" char *re_comp _RE_ARGS ((const char *));
extern "C" int re_exec _RE_ARGS ((const char *));

/* POSIX compatibility. */
extern int regcomp _RE_ARGS ((regex_t *preg, const char *pattern, int cflags));
Expand Down

0 comments on commit 9e9709e

Please sign in to comment.