Skip to content

Commit 99eab5a

Browse files
committed
Fix Visual Studio 2015 Build
1 parent 6d9c3e6 commit 99eab5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/nativeapi/mysql_private_iface.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
The MySQL Connector/C++ is licensed under the terms of the GPLv2
55
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -48,6 +48,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4848
#define snprintf _snprintf
4949
#endif
5050

51+
#if ( defined(_WIN32) || defined(_WIN64) ) && (_MSC_VER >= 1900)
52+
#define HAVE_STRUCT_TIMESPEC
53+
#endif
5154

5255
#if !defined(_WIN32) && !defined(_WIN64)
5356
extern "C"

0 commit comments

Comments
 (0)