From 01c3a52c2575b5cc1c450ec75cea2b27dc5692a4 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 14 Mar 2022 08:25:00 -0500 Subject: [PATCH] bugfix with escaping strings in includes --- modules/openal/ build.bat | 3 +++ src/symres.c | 1 + 2 files changed, 4 insertions(+) create mode 100644 modules/openal/ build.bat diff --git a/modules/openal/ build.bat b/modules/openal/ build.bat new file mode 100644 index 00000000..afbba2c2 --- /dev/null +++ b/modules/openal/ build.bat @@ -0,0 +1,3 @@ +@echo off + +cl /MT /std:c17 /TC /I include /I lib/common/include /I "C:\Program Files (x86)\OpenAL 1.1 SDK\include" /D_USRDLL /D_WINDLL modules\openal\onyx_openal.c /link "C:\Program Files (x86)\OpenAL 1.1 SDK\libs\Win64\OpenAL32.lib" /DLL /OUT:onyx_openal.dll \ No newline at end of file diff --git a/src/symres.c b/src/symres.c index 092f85d2..bf173503 100644 --- a/src/symres.c +++ b/src/symres.c @@ -1470,6 +1470,7 @@ static SymresStatus symres_include(AstInclude* include) { if (str_token != NULL) { token_toggle_end(str_token); include->name = bh_strdup(context.ast_alloc, str_token->text); + string_process_escape_seqs(include->name, include->name, strlen(include->name)); token_toggle_end(str_token); } -- 2.25.1