From 200e34f0caf05040e1a9a1e42cf86a9b25034862 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 9 Apr 2024 21:15:15 +0200 Subject: [PATCH] Update UnitTestFileGenerator.h --- test/unit/UnitTestFileGenerator.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/unit/UnitTestFileGenerator.h b/test/unit/UnitTestFileGenerator.h index fcf31ef9f..c5eb23ea8 100644 --- a/test/unit/UnitTestFileGenerator.h +++ b/test/unit/UnitTestFileGenerator.h @@ -45,13 +45,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #if defined(_MSC_VER) || defined(__MINGW64__) || defined(__MINGW32__) -#define TMP_PATH "./" +# define TMP_PATH "./" #elif defined(__GNUC__) || defined(__clang__) -#define TMP_PATH "/tmp/" +# define TMP_PATH "/tmp/" #endif #if defined(_MSC_VER) -#define _CRT_SECURE_NO_WARNINGS +# ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS +# endif #include inline FILE* MakeTmpFile(char* tmplate) {