From 957d1671990ea08c661dc35e8ad7cf42893c5544 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Tue, 19 Feb 2019 10:49:23 -0800 Subject: [PATCH] Fixed use of WIN32 needs to be _WIN32. Change-Id: Ie1f88ac5613cc09ed1074608dd6517ae20c7973d --- tests/test.cpp | 2 +- tests/test_assert.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.cpp b/tests/test.cpp index ad0c18249..a1a10ba30 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -1240,7 +1240,7 @@ void TestError_(const char *src, const char *error_substr, const char *file, TestError_(src, error_substr, false, file, line, func); } -#ifdef WIN32 +#ifdef _WIN32 # define TestError(src, ...) \ TestError_(src, __VA_ARGS__, __FILE__, __LINE__, __FUNCTION__) #else diff --git a/tests/test_assert.h b/tests/test_assert.h index 5a9610e1f..883586b0e 100644 --- a/tests/test_assert.h +++ b/tests/test_assert.h @@ -21,7 +21,7 @@ #define TEST_NOTNULL(exp) TestEq(exp == NULL, false, #exp, __FILE__, __LINE__) #define TEST_EQ_STR(exp, val) TestEqStr(exp, val, #exp, __FILE__, __LINE__) -#ifdef WIN32 +#ifdef _WIN32 #define TEST_ASSERT_FUNC(exp) TestEq(exp, true, #exp, __FILE__, __LINE__, __FUNCTION__) #define TEST_EQ_FUNC(exp, val) TestEq(exp, val, #exp, __FILE__, __LINE__, __FUNCTION__) #else