chore(build): make platform and arch defines more specific

This commit is contained in:
fallenoak 2020-11-24 17:29:31 -06:00
parent 5e2001a164
commit be391c6592
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
12 changed files with 41 additions and 41 deletions

View file

@ -1,11 +1,11 @@
#include "storm/thread/CSRWLock.hpp"
void CSRWLock::Enter(int32_t forwriting) {
#ifdef PLATFORM_WIN
#ifdef WHOA_PLATFORM_WIN
// TODO
#endif
#if defined(PLATFORM_MAC) || defined(PLATFORM_LINUX)
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
if (forwriting) {
pthread_rwlock_wrlock(&this->m_lock);
} else {
@ -15,11 +15,11 @@ void CSRWLock::Enter(int32_t forwriting) {
}
void CSRWLock::Leave(int32_t fromwriting) {
#ifdef PLATFORM_WIN
#ifdef WHOA_PLATFORM_WIN
// TODO
#endif
#if defined(PLATFORM_MAC) || defined(PLATFORM_LINUX)
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
pthread_rwlock_unlock(&this->m_lock);
#endif
}