From 1db461e6efff6b71b99065025ebd8161ccd85001 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 10 Aug 2009 23:58:19 +0000 Subject: [PATCH] 2009-08-11 01:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * include/hbatomic.h ! Suppressed recent bcc warnings. Thanks to Grigory Filatov for the fix. --- harbour/ChangeLog | 5 +++++ harbour/include/hbatomic.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 30fb7d4842..8c3592b0b7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-08-11 01:57 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * include/hbatomic.h + ! Suppressed recent bcc warnings. + Thanks to Grigory Filatov for the fix. + 2009-08-11 01:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/bsd/gcc.cf * config/wce/msvcarm.cf diff --git a/harbour/include/hbatomic.h b/harbour/include/hbatomic.h index 19b681e77b..4a05b67c9e 100644 --- a/harbour/include/hbatomic.h +++ b/harbour/include/hbatomic.h @@ -370,9 +370,9 @@ HB_EXTERN_BEGIN # define HB_SPINLOCK_ACQUIRE(l) do { \ for( ;; ) \ { \ - if( !InterlockedExchange( (l), 1 ) ) \ + if( !InterlockedExchange( (LONG*)(l), 1 ) ) \ break; \ - if( !InterlockedExchange( (l), 1 ) ) \ + if( !InterlockedExchange( (LONG*)(l), 1 ) ) \ break; \ Sleep( 0 ); \ } \