vstudio: Define _HAS_EXCEPTIONS=0 from vs2010 for exceptionhandling off
function m.clCompilePreprocessorDefinitions(cfg, condition)
local defines = cfg.defines
- if cfg.exceptionhandling == p.OFF and _ACTION >= "vs2013" then
+ if cfg.exceptionhandling == p.OFF then
defines = table.join(defines, "_HAS_EXCEPTIONS=0")
end
m.preprocessorDefinitions(cfg, defines, false, condition)
function m.resourcePreprocessorDefinitions(cfg)
local defines = table.join(cfg.defines, cfg.resdefines)
- if cfg.exceptionhandling == p.OFF and _ACTION >= "vs2013" then
+ if cfg.exceptionhandling == p.OFF then
table.insert(defines, "_HAS_EXCEPTIONS=0")
end
m.preprocessorDefinitions(cfg, defines, true)
