From c4e311d71a4210cbc0bac12171d8d17fe3334388 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Tue, 13 Apr 2021 02:53:18 +0200 Subject: [PATCH] fix msvc warning --- tests/runner.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/runner.cc b/tests/runner.cc index 871e768..62e1741 100644 --- a/tests/runner.cc +++ b/tests/runner.cc @@ -1,5 +1,10 @@ /* a rudimentary test runner for cubescript files */ +#ifdef _MSC_VER +/* avoid silly complaints about fopen */ +# define _CRT_SECURE_NO_WARNINGS 1 +#endif + #include #include #include