Skip to content
Snippets Groups Projects
Commit 604a028d authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't do anything (including error) for Borland C

parent 43f30849
No related branches found
No related tags found
No related merge requests found
Pipeline #5288 failed
#include "rwlockwrap.h"
#ifdef _WIN32
#if defined(__BORLANDC__)
// Do nothing...
#elif defined(_WIN32)
bool
rwlock_init(rwlock_t *lock)
......
......@@ -14,6 +14,10 @@ typedef pthread_rwlock_t rwlock_t;
#define rwlock_trywrlock(lock) (pthread_rwlock_trywrlock(lock) == 0)
#define rwlock_unlock(lock) (pthread_rwlock_unlock(lock) == 0)
#elif defined(__BORLANDC__)
// Not supported, but ignored...
#elif defined(_WIN32)
#include "gen_defs.h" // For windows.h and bool :(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment