summaryrefslogtreecommitdiffstats
path: root/modules/text_server_fb/SCsub
diff options
context:
space:
mode:
authorNinni Pipping <over999ships@gmail.com>2023-05-11 12:32:23 +0200
committerNinni Pipping <over999ships@gmail.com>2023-05-11 16:00:59 +0200
commit71ee65dc5701a0675ae6b1879a694a28c7206a63 (patch)
tree28eb06dc8c5422c9e0d0c7ca2a024f0c179da6b2 /modules/text_server_fb/SCsub
parentfd4a06c51555904104b18494d0224f450d74fe2a (diff)
downloadredot-engine-71ee65dc5701a0675ae6b1879a694a28c7206a63.tar.gz
Enable shadow warnings and fix raised errors
Diffstat (limited to 'modules/text_server_fb/SCsub')
-rw-r--r--modules/text_server_fb/SCsub6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/text_server_fb/SCsub b/modules/text_server_fb/SCsub
index f1d57ec4d3..582e622147 100644
--- a/modules/text_server_fb/SCsub
+++ b/modules/text_server_fb/SCsub
@@ -12,7 +12,11 @@ if "svg" in env.module_list:
env_text_server_fb.Prepend(CPPPATH=["#thirdparty/thorvg/inc", "#thirdparty/thorvg/src/lib"])
if env["builtin_msdfgen"] and msdfgen_enabled:
- env_text_server_fb.Prepend(CPPPATH=["#thirdparty/msdfgen"])
+ # Treat msdfgen headers as system headers to avoid raising warnings. Not supported on MSVC.
+ if not env.msvc:
+ env_text_server_fb.Append(CPPFLAGS=["-isystem", Dir("#thirdparty/msdfgen").path])
+ else:
+ env_text_server_fb.Prepend(CPPPATH=["#thirdparty/msdfgen"])
if env["builtin_freetype"] and freetype_enabled:
env_text_server_fb.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_BROTLI"])