summaryrefslogtreecommitdiff
path: root/modules/mono/editor
diff options
context:
space:
mode:
authorMatthias Hoelzl <tc@xantira.com>2017-11-10 10:04:25 +0100
committerMatthias Hoelzl <tc@xantira.com>2017-11-10 10:14:04 +0100
commit1f6d7663328a03e7f545b7963819092c4c8ce299 (patch)
tree0111eadc2c2cf22ad7d5923dcc686e7fab8ea1ba /modules/mono/editor
parente2785fbdede5022bb4e2d48811ffef0c94efcc0f (diff)
Remove preprocessor directives from macro arguments
Preprocessor directives within macro arguments lead to undefined behavior, and VC++ actually rejects them as compiler errors.
Diffstat (limited to 'modules/mono/editor')
-rw-r--r--modules/mono/editor/godotsharp_builds.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/mono/editor/godotsharp_builds.cpp b/modules/mono/editor/godotsharp_builds.cpp
index 24247ed3b4..b88d34fc33 100644
--- a/modules/mono/editor/godotsharp_builds.cpp
+++ b/modules/mono/editor/godotsharp_builds.cpp
@@ -365,14 +365,14 @@ GodotSharpBuilds::GodotSharpBuilds() {
// Build tool settings
EditorSettings *ed_settings = EditorSettings::get_singleton();
- EDITOR_DEF("mono/builds/build_tool",
+
#ifdef WINDOWS_ENABLED
- // TODO: Default to MSBUILD_MONO if its csc.exe issue is fixed in the installed mono version
- MSBUILD
+ // TODO: Default to MSBUILD_MONO if its csc.exe issue is fixed in the installed mono version
+ EDITOR_DEF("mono/builds/build_tool", MSBUILD);
#else
- MSBUILD_MONO
+ EDITOR_DEF("mono/builds/build_tool", MSBUILD_MONO);
#endif
- );
+
ed_settings->add_property_hint(PropertyInfo(Variant::INT, "mono/builds/build_tool", PROPERTY_HINT_ENUM,
#ifdef WINDOWS_ENABLED
"MSBuild (Mono),MSBuild (System)"