File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 35
35
#include < vector>
36
36
37
37
#ifdef _WIN32
38
- #include < windows.h>
39
- using NATIVE_THREAD_HANDLE = HANDLE;
38
+ // Here we directly use void* instead of including windows.h
39
+ // 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 *;
40
43
#else
41
44
using NATIVE_THREAD_HANDLE = pthread_t ;
42
45
#endif
Original file line number Diff line number Diff line change 28
28
29
29
#include " realtime_tools/realtime_helpers.hpp"
30
30
31
- #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
31
+ #ifdef _WIN32
32
+ #include < windows.h>
33
+ #else
32
34
#include < sched.h>
33
35
#include < sys/capability.h>
34
36
#include < sys/mman.h>
You can’t perform that action at this time.
0 commit comments