···2929#define XRT_HAVE_TIMEVAL
30303131#elif defined(XRT_OS_WINDOWS)
3232+#if defined(XRT_ENV_MINGW)
3333+// That define is needed before to include windows.h, to avoid a collision
3434+// between the 'byte' type defined by windows and std::byte defined in cstddef
3535+// since C++17
3636+#define byte win_byte_override
3737+#include <windows.h>
3838+#undef byte
3939+#endif
4040+3241#include <time.h>
3342#include <timeapi.h>
3443#define XRT_HAVE_TIMESPEC
···162171 * @ingroup aux_os_time
163172 */
164173static inline int64_t
165165-os_ns_per_qpc_tick_get();
174174+os_ns_per_qpc_tick_get(void);
166175#endif
167176168177···273282274283#if defined(XRT_OS_WINDOWS)
275284static inline int64_t
276276-os_ns_per_qpc_tick_get()
285285+os_ns_per_qpc_tick_get(void)
277286{
278287 static int64_t ns_per_qpc_tick = 0;
279288 if (ns_per_qpc_tick == 0) {
···2222#include <stdint.h>
2323#include <time.h>
24242525+#if defined(XRT_ENV_MINGW)
2626+// That define is needed before to include windows.h, to avoid a collision
2727+// between the 'byte' type defined by windows and std::byte defined in cstddef
2828+// since C++17
2929+#define byte win_byte_override
3030+#include <windows.h>
3131+#undef byte
3232+#endif
25332634#ifdef __cplusplus
2735extern "C" {
+3
src/xrt/include/xrt/xrt_config_os.h
···3434#define XRT_OS_WAS_AUTODETECTED
3535#endif
36363737+#if defined(__MINGW32__)
3838+#define XRT_ENV_MINGW
3939+#endif
37403841#ifndef XRT_OS_WAS_AUTODETECTED
3942#error "OS type not found during compile"