From fa13f2c108d849f5223ba6afb51c1143bb4e7371 Mon Sep 17 00:00:00 2001 From: Jessy GIACOMONI Date: Tue, 12 Aug 2014 15:44:52 +0200 Subject: [PATCH] Modify preprocessor : WIN32 WIN32 is defined by the SDK or the build environment, so it does not use the implementation reserved namespace _WIN32 is defined by the compiler so it uses the underscore to place it in the implementation-reserved namespace --- cxxtest/XmlFormatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cxxtest/XmlFormatter.h b/cxxtest/XmlFormatter.h index b6fd1a2..2322b26 100644 --- a/cxxtest/XmlFormatter.h +++ b/cxxtest/XmlFormatter.h @@ -599,7 +599,7 @@ class XmlFormatter : public TestListener const time_t now(time(NULL)); char current_date_string[27]; -#ifdef WIN32 +#ifdef _WIN32 if (ctime_s(current_date_string, sizeof(current_date_string)-1, &now) == 0) { retVal = current_date_string;