[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.
This commit is contained in:
Aras Pranckevicius 2017-05-10 16:52:50 +03:00
parent 12d693682f
commit 8e204b2d67
5 changed files with 11 additions and 1 deletions

View file

@ -76,7 +76,9 @@ TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\****************************************************************************/
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <cstdlib>
#include <cstring>