From 28c361ba087a12eee6f86883195d9609b4cb61a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 18 Jan 2024 12:53:39 -0500 Subject: [PATCH] Re-enable rwlocks for Borland. Since we can't bool anyway, may as well. --- src/xpdev/rwlockwrap.c | 6 +----- src/xpdev/rwlockwrap.h | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/xpdev/rwlockwrap.c b/src/xpdev/rwlockwrap.c index 22450bc16c..3ab1fcd4e2 100644 --- a/src/xpdev/rwlockwrap.c +++ b/src/xpdev/rwlockwrap.c @@ -1,10 +1,6 @@ #include "rwlockwrap.h" -#if defined(__BORLANDC__) - -// Do nothing... - -#elif defined(_WIN32) +#if defined(_WIN32) #include <stdlib.h> diff --git a/src/xpdev/rwlockwrap.h b/src/xpdev/rwlockwrap.h index 279eab9908..80a64c1f4b 100644 --- a/src/xpdev/rwlockwrap.h +++ b/src/xpdev/rwlockwrap.h @@ -14,10 +14,6 @@ typedef pthread_rwlock_t rwlock_t; #define rwlock_unlock(lock) (pthread_rwlock_unlock(lock) == 0) #define rwlock_destroy(lock) (pthread_rwlock_destroy(lock) == 0) -#elif defined(__BORLANDC__) - -// Not supported, but ignored... - #elif defined(_WIN32) #include "gen_defs.h" // For windows.h and BOOL!! :( -- GitLab