Do not include the semaphore headers inside namespace tracy

This commit is contained in:
Arvid Gerstmann 2018-07-13 19:51:24 +02:00
parent 3e012cb762
commit 6fee78dfee

View File

@ -22,6 +22,12 @@
#include <atomic>
#include <cassert>
#if defined(__MACH__)
#include <mach/mach.h>
#elif defined(__unix__)
#include <semaphore.h>
#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 <mach/mach.h>
class Semaphore
{
private:
@ -126,8 +130,6 @@ public:
// Semaphore (POSIX, Linux)
//---------------------------------------------------------
#include <semaphore.h>
class Semaphore
{
private: