Skip to content

Commit

Permalink
Allow VS2012+ to access std::chrono versions of blocking functions to…
Browse files Browse the repository at this point in the history
…o (issue cameron314#40)
  • Loading branch information
cameron314 committed Nov 23, 2016
1 parent f2c0c6f commit 66a9b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readerwriterqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <new>
#include <cstdint>
#include <cstdlib> // For malloc/free/abort & size_t
#if __cplusplus > 199711L
#if __cplusplus > 199711L || _MSC_VER >= 1700 // C++11 or VS2012
#include <chrono>
#endif

Expand Down Expand Up @@ -751,7 +751,7 @@ class BlockingReaderWriterQueue
}


#if __cplusplus > 199711L
#if __cplusplus > 199711L || _MSC_VER >= 1700
// Attempts to dequeue an element; if the queue is empty,
// waits until an element is available up to the specified timeout,
// then dequeues it and returns true, or returns false if the timeout
Expand Down

0 comments on commit 66a9b18

Please sign in to comment.