File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 3535#include < vector>
3636
3737#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 *;
4043#else
4144using NATIVE_THREAD_HANDLE = pthread_t ;
4245#endif
Original file line number Diff line number Diff line change 2828
2929#include " realtime_tools/realtime_helpers.hpp"
3030
31- #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
31+ #ifdef _WIN32
32+ #include < windows.h>
33+ #else
3234#include < sched.h>
3335#include < sys/capability.h>
3436#include < sys/mman.h>
You can’t perform that action at this time.
0 commit comments