We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d54140d commit 1226243Copy full SHA for 1226243
include/realtime_tools/realtime_helpers.hpp
@@ -35,8 +35,11 @@
35
#include <vector>
36
37
#ifdef _WIN32
38
-#include <windows.h>
39
-using NATIVE_THREAD_HANDLE = HANDLE;
+// Here we directly use void* instead of including windows.h
+// and using HANDLE macro to avoid polluting all the downstream
40
+// compilation units that include the public header realtime_helpers.hpp
41
+// with problematic macros like MIN, MAX or ERROR
42
+using NATIVE_THREAD_HANDLE = void*;
43
#else
44
using NATIVE_THREAD_HANDLE = pthread_t;
45
#endif
0 commit comments