Merged in Leandros99/tracy/fix-unix-semaphore (pull request #7)

Do not include the semaphore headers inside namespace tracy
This commit is contained in:
Arvid Gerstmann 2018-07-13 17:54:35 +00:00 committed by Bartosz Taudul
commit 575b04076f

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: