diff options
| author | jvoisin | 2021-05-09 18:09:17 +0200 |
|---|---|---|
| committer | jvoisin | 2021-05-09 18:09:17 +0200 |
| commit | 7ea172dd6909c624bd9db603c4e4f86e1042a7e5 (patch) | |
| tree | a00375319ff427cb6b5d3038eaa16688c7696502 /src | |
| parent | 194b0bc9f0a4699854ea314ffa23e59f8082ddae (diff) | |
Fix compilation on non-pcre2 targets
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_pcre_compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c index adcdee7..3bd00ca 100644 --- a/src/sp_pcre_compat.c +++ b/src/sp_pcre_compat.c | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | inline void sp_pcre_free(sp_pcre* regexp) { | 3 | inline void sp_pcre_free(sp_pcre* regexp) { |
| 4 | #ifdef SP_HAS_PCRE2 | ||
| 4 | pcre2_code_free(regexp); | 5 | pcre2_code_free(regexp); |
| 6 | #endif | ||
| 5 | regexp = NULL; | 7 | regexp = NULL; |
| 6 | } | 8 | } |
| 7 | 9 | ||
