Skip to content

Commit 055fd39

Browse files
committed
trying to fix windows compile issues
1 parent 29c7244 commit 055fd39

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

TinyJobs/include/TinyJobs.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
#include <pthread.h>
8888
#include <sched.h>
8989
#elif defined(_WIN32)
90+
//exclude min / max defines
91+
#define NOMINMAX
9092
#include <windows.h>
9193
#elif defined(__APPLE__)
9294
#include <pthread.h>
@@ -594,7 +596,12 @@ class Future {
594596
/**
595597
* @brief store a potential large heap buffer
596598
*/
597-
void* large_ptr = nullptr;
599+
void* large_ptr;
600+
601+
/**
602+
* @brief Default constructor
603+
*/
604+
constexpr Data() noexcept : large_ptr(nullptr) {}
598605
} m_data;
599606

600607
/**

0 commit comments

Comments
 (0)