From c0a9263e3d61201a2b1b9be84a42d0e0956f4933 Mon Sep 17 00:00:00 2001 From: FrancisANDRE Date: Wed, 30 Mar 2016 09:43:58 +0200 Subject: [PATCH] Starting from VS2015, struct timespec is defined by windows. Signed-off-by: FrancisANDRE --- Data/MySQL/testsuite/src/SQLExecutor.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Data/MySQL/testsuite/src/SQLExecutor.cpp b/Data/MySQL/testsuite/src/SQLExecutor.cpp index b0fb25947..9a16229a3 100644 --- a/Data/MySQL/testsuite/src/SQLExecutor.cpp +++ b/Data/MySQL/testsuite/src/SQLExecutor.cpp @@ -9,6 +9,10 @@ // SPDX-License-Identifier: BSL-1.0 // +#include +#include + + #include "Poco/CppUnit/TestCase.h" #include "SQLExecutor.h" #include "Poco/NumberParser.h" @@ -27,10 +31,12 @@ #include "Poco/Data/MySQL/Connector.h" #include "Poco/Data/MySQL/MySQLException.h" +#if POCO_MSVS_VERSION == 2015 +#define HAVE_STRUCT_TIMESPEC +#endif + #include #include -#include -#include #ifdef max #undef max