Enabling the -DLIBM2K_ENABLE_LOG flag, causes this compile error with MSVC-2022:
context_impl.cpp(118): error C2872: 'INPUT': ambiguous symbol
f:\gv\WinKit\Include\10.0.22621.0\um\winuser.h(6144): note: could be 'tagINPUT INPUT'
F:\gv\dx-radio\gnuradio\gv-build\include\libm2k/utils/enums.hpp(37): note: or 'libm2k::utils::DEVICE_DIRECTION INPUT'
context_impl.cpp(118): error C2275: 'INPUT': expected an expression instead of a type
context_impl.cpp(127): error C2872: 'INPUT': ambiguous symbol
...
Since <winuser.h> was pulled in via <glog/logging.h> and <windows.h>.
I fail to understand how to fix this.
Perhaps include/libm2k/utils/enums.hpp could use less universal names like m2k_INPUT etc.?
Enabling the
-DLIBM2K_ENABLE_LOGflag, causes this compile error with MSVC-2022:Since
<winuser.h>was pulled in via<glog/logging.h>and<windows.h>.I fail to understand how to fix this.
Perhaps
include/libm2k/utils/enums.hppcould use less universal names likem2k_INPUTetc.?