summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-19 11:41:44 -0400
committerpommicket <pommicket@gmail.com>2023-10-19 11:41:44 -0400
commit58ec097fc9fe0989baebe52e4b899878df4128f2 (patch)
tree398cd0ec65f5436cdb0b3ecb472625c95c3aafba
parentb61462368b091c0ea1c495e1f17d22ae81b0e163 (diff)
fix windows build
-rw-r--r--config.c2
-rw-r--r--make.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index c3f1777..7f9a4a3 100644
--- a/config.c
+++ b/config.c
@@ -961,7 +961,7 @@ static void config_compile_regex(Config *cfg, ConfigReader *reader) {
char fixed[8192];
// replace forward slashes with backslashes
// (but actually double backslashes because this is a regex)
- for (size_t in = 0, out = 0; out < sizeof fixed - 4 && regex[in]; ++in)
+ for (size_t in = 0, out = 0; out < sizeof fixed - 4 && regex[in]; ++in) {
if (regex[in] == '/') {
fixed[out++] = '\\';
fixed[out++] = '\\';
diff --git a/make.bat b/make.bat
index 16dc9db..b25efed 100644
--- a/make.bat
+++ b/make.bat
@@ -5,7 +5,7 @@ if _%VCVARS% == _ (
)
if not exist pcre2-8-static.lib (
pushd pcre2
- cmake -D PCRE2_BUILD_PCRE2_8=OFF -D PCRE2_BUILD_TESTS=OFF -D PCRE2_BUILD_PCRE2_32=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_GENERATOR_PLATFORM=x64 -D PCRE2_STATIC=ON .
+ cmake -D PCRE2_BUILD_PCRE2_8=ON -D PCRE2_BUILD_TESTS=OFF -D PCRE2_BUILD_PCRE2_32=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_GENERATOR_PLATFORM=x64 -D PCRE2_STATIC=ON .
cmake --build . --config Release
popd
copy /y pcre2\Release\pcre2-32-static.lib