From 9e867c7ed12ec244e98e67d1003c93bfe0c5915b Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Sun, 12 Sep 1999 02:38:24 +0000 Subject: [PATCH] See ChangeLog entry 19990911-20:25 EDT David G. Holm --- harbour/ChangeLog | 6 ++++++ harbour/source/rtl/tone.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index ad02cbf556..9397014bcf 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +19990911-20:25 EDT David G. Holm + * source/rtl/tone.c + ! Added '|| defined(__CYGWIN__)' to the #if block for HARBOUR_GCC_OS2 + and _Windows for calculating the value for temp for each pass of the + tone duration timing loop. + 19990911-07:42 EDT Paul Tucker * makefile.vc added new files for compiler to exe generation section diff --git a/harbour/source/rtl/tone.c b/harbour/source/rtl/tone.c index 9e0d75aa08..7c4a9fbe2b 100644 --- a/harbour/source/rtl/tone.c +++ b/harbour/source/rtl/tone.c @@ -158,7 +158,7 @@ void hb_tone( double frequency, double duration ) #endif while( duration > 0.0 ) { -#if defined(HARBOUR_GCC_OS2) || defined(_Windows) +#if defined(HARBOUR_GCC_OS2) || defined(_Windows) || defined(__CYGWIN__) temp = MIN( MAX ( 0, duration ), ULONG_MAX ); #elif defined(OS2) || defined(__BORLANDC__) || defined(__DJGPP__) temp = MIN( MAX ( 0, duration ), USHRT_MAX );