From 6fee78dfee3784e79b6ec64d7af751e6c1785403 Mon Sep 17 00:00:00 2001 From: Arvid Gerstmann Date: Fri, 13 Jul 2018 19:51:24 +0200 Subject: [PATCH] Do not include the semaphore headers inside namespace tracy --- common/tracy_sema.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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: