mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 21:37:36 +00:00
Fixed use of WIN32 needs to be _WIN32.
Change-Id: Ie1f88ac5613cc09ed1074608dd6517ae20c7973d
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user