mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(build): make platform and arch defines more specific
This commit is contained in:
parent
5e2001a164
commit
be391c6592
12 changed files with 41 additions and 41 deletions
|
|
@ -3,18 +3,18 @@
|
|||
|
||||
#include <cstdint>
|
||||
|
||||
#if defined(PLATFORM_MAC) || defined(PLATFORM_LINUX)
|
||||
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
class CSRWLock {
|
||||
public:
|
||||
// Member variables
|
||||
#ifdef PLATFORM_WIN
|
||||
#ifdef WHOA_PLATFORM_WIN
|
||||
char m_opaqueData[12];
|
||||
#endif
|
||||
|
||||
#if defined(PLATFORM_MAC) || defined(PLATFORM_LINUX)
|
||||
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
|
||||
pthread_rwlock_t m_lock;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue