mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Do not include the semaphore headers inside namespace tracy
This commit is contained in:
parent
3e012cb762
commit
6fee78dfee
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user