From 26128c29aa4a15ff116efb43870883803e6e9a54 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Mon, 15 Jul 2024 15:09:35 -0400 Subject: [PATCH] WinGUI beeping : Borland Turbo C lacks a '_beginthread()' function, so we can't beep in a separate thread. The program will therefore lock up while beeping is occurring... don't see a way around that. --- wingui/pdcutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wingui/pdcutil.c b/wingui/pdcutil.c index 04fe80ca..327b690f 100644 --- a/wingui/pdcutil.c +++ b/wingui/pdcutil.c @@ -22,9 +22,13 @@ static void beep_thread(LPVOID lpParameter) void PDC_beep(void) { PDC_LOG(("PDC_beep() - called\n")); +#if defined(__TURBOC__) + beep_thread( 0); +#else _beep_count++; if( _beep_count == 1) _beginthread( beep_thread, 0, NULL); +#endif } void PDC_napms(int ms) /* 'ms' = milli, _not_ microseconds! */