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

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

parent c9eacdab
Branches
Tags
1 merge request!455Update branch with changes from master
#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.
Please register or to comment