diff --git a/common/tracy_sema.h b/common/tracy_sema.h index 0b76e10c..2419bb79 100644 --- a/common/tracy_sema.h +++ b/common/tracy_sema.h @@ -22,6 +22,12 @@ #include #include +#if defined(__MACH__) + #include +#elif defined(__unix__) + #include +#endif + namespace tracy { @@ -79,8 +85,6 @@ public: // Can't use POSIX semaphores due to http://lists.apple.com/archives/darwin-kernel/2009/Apr/msg00010.html //--------------------------------------------------------- -#include - class Semaphore { private: @@ -126,8 +130,6 @@ public: // Semaphore (POSIX, Linux) //--------------------------------------------------------- -#include - class Semaphore { private: