Skip to content

Commit ef9978d

Browse files
committed
CDRIVER-995 config check for struct timespec
Fixes build on VS2015, which now provides timespec along with many other stdlib symbols.
1 parent b44ce0c commit ef9978d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestSuite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
# define AtomicInt_DecrementAndTest(p) (bson_atomic_int_add(p, -1) == 0)
9393

9494

95-
#if defined(_MSC_VER)
95+
#if !defined(BSON_HAVE_TIMESPEC)
9696
struct timespec
9797
{
9898
time_t tv_sec;

0 commit comments

Comments
 (0)