1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: In Xcode exporter, properly escape single quotes in preprocessor definitions

This commit is contained in:
reuk 2021-08-16 20:45:19 +01:00
parent f989182f32
commit cd495f136e
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -1705,7 +1705,7 @@ public:
auto def = defines.getAllKeys()[i];
auto value = defines.getAllValues()[i];
if (value.isNotEmpty())
def << "=" << value.replace ("\"", "\\\\\\\"").replace (" ", "\\\\ ");
def << "=" << value.replace ("\"", "\\\\\\\"").replace (" ", "\\\\ ").replace ("\'", "\\\\'");
defsList.add ("\"" + def + "\"");
}