[lumped builds] Only define _CRT_SECURE_NO_WARNINGS if it’s not defined yet.
authorAras Pranckevicius <aras@unity3d.com>
Wed, 10 May 2017 13:52:50 +0000 (16:52 +0300)
committerAras Pranckevicius <aras@unity3d.com>
Wed, 10 May 2017 13:52:50 +0000 (16:52 +0300)
commit8e204b2d677c258ee64510ee7e1363371a8f5ce8
treeeeb14bd22eaf6f0edfc763bc6c3c0116333f7b95
parent12d693682f8a5080c2b4a9347dfdaea66e7b4de7
[lumped builds] Only define _CRT_SECURE_NO_WARNINGS if it’s not defined yet.
When glslang is built with some other build system and lumped/unity builds are used,
without the checks this would get “macro is being redefined” warnings/errors.
StandAlone/StandAlone.cpp
glslang/MachineIndependent/preprocessor/Pp.cpp
glslang/MachineIndependent/preprocessor/PpAtom.cpp
glslang/MachineIndependent/preprocessor/PpScanner.cpp
glslang/MachineIndependent/preprocessor/PpTokens.cpp