diff options
| author | 2024-05-25 08:24:08 +0200 | |
|---|---|---|
| committer | 2024-05-25 08:24:08 +0200 | |
| commit | a2920800007c291bdf2b5264622cbc713d4961ee (patch) | |
| tree | 9fb1b2b89e0bfbb4b8bf1e85d840c8653e646bb7 /xs_regex.h | |
| parent | Added a 'title' to each list timeline. (diff) | |
| download | snac2-a2920800007c291bdf2b5264622cbc713d4961ee.tar.gz snac2-a2920800007c291bdf2b5264622cbc713d4961ee.tar.xz snac2-a2920800007c291bdf2b5264622cbc713d4961ee.zip | |
Backport from xs (fix regex.h compilation with tcc).
Diffstat (limited to 'xs_regex.h')
| -rw-r--r-- | xs_regex.h | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -16,6 +16,11 @@ xs_list *xs_regex_replace_in(xs_str *str, const char *rx, const char *rep, int c | |||
| 16 | 16 | ||
| 17 | #ifdef XS_IMPLEMENTATION | 17 | #ifdef XS_IMPLEMENTATION |
| 18 | 18 | ||
| 19 | #ifdef __TINYC__ | ||
| 20 | /* fix a compilation error in tcc */ | ||
| 21 | #define _REGEX_NELTS(n) | ||
| 22 | #endif | ||
| 23 | |||
| 19 | #include <regex.h> | 24 | #include <regex.h> |
| 20 | 25 | ||
| 21 | xs_list *xs_regex_split_n(const char *str, const char *rx, int count) | 26 | xs_list *xs_regex_split_n(const char *str, const char *rx, int count) |