diff --git a/src/dsv41/ds4_os.hpp b/src/dsv41/ds4_os.hpp index e339ddb3..0038ff61 100644 --- a/src/dsv41/ds4_os.hpp +++ b/src/dsv41/ds4_os.hpp @@ -6,6 +6,10 @@ // does it for GLM: no FILE_FLAG_RANDOM_ACCESS - the page cache must keep what it read.) #pragma once +#if defined(__APPLE__) +#include "ds4_os_apple.h" // the Linux calls the body uses, on macOS +#endif + #include #include #include @@ -18,9 +22,6 @@ #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #ifndef NOMINMAX -#if defined(__APPLE__) -#include "ds4_os_apple.h" // the Linux calls below, on macOS -#endif #define NOMINMAX #endif #include