Adding support for NotSet characterset in VS2010+ (#79)

This commit is contained in:
Jacob Repp 2017-02-14 15:09:11 -08:00 committed by Tom van Dijck
parent 6437cfddd9
commit cc107a4da4
3 changed files with 11 additions and 3 deletions

View File

@ -144,6 +144,7 @@
scope = "config",
kind = "string",
allowed = {
"NotSet",
"Default",
"MBCS",
"Unicode",

View File

@ -1168,7 +1168,13 @@
function m.characterSet(cfg)
if not vstudio.isMakefile(cfg) then
m.element("CharacterSet", nil, iif(cfg.characterset == p.MBCS, "MultiByte", "Unicode"))
local charactersets = {
NotSet = "NotSet",
MBCS = "MultiByte",
Unicode = "Unicode",
Default = "Unicode"
}
m.element("CharacterSet", nil, charactersets[cfg.characterset])
end
end

View File

@ -138,6 +138,7 @@
Default = { '/D"_UNICODE"', '/D"UNICODE"' },
MBCS = '/D"_MBCS"',
Unicode = { '/D"_UNICODE"', '/D"UNICODE"' },
NotSet = { },
}
}