From: Andreas Oberritter Date: Tue, 25 Mar 2008 22:38:21 +0000 (+0000) Subject: fix compile error for i386-optimized refcounting, X-Git-Tag: 2.6.0~1434 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/c9c138dd06d5eee865c0dd825fb728913ed4a8f0 fix compile error for i386-optimized refcounting, use the same code for x86_64 --- diff --git a/lib/base/object.h b/lib/base/object.h index 67a4606c..1723a885 100644 --- a/lib/base/object.h +++ b/lib/base/object.h @@ -140,7 +140,7 @@ public: if (!ref) \ delete this; \ } - #elif defined(__i386__) + #elif defined(__i386__) || defined(__x86_64__) #define DECLARE_REF(x) \ private: oRefCount ref; \ public: void AddRef(); \ @@ -151,14 +151,14 @@ public: __asm__ __volatile__( \ " lock ; incl %0 \n" \ : "=m" (ref.count) \ - : "m" (ref.count); \ + : "m" (ref.count)); \ } \ void c::Release() \ { \ __asm__ __volatile__( \ " lock ; decl %0 \n" \ : "=m" (ref.count) \ - : "m" (ref.count); \ + : "m" (ref.count)); \ if (!ref) \ delete this; \ }