From 9cd2e9ec8fc0127393dfce9c0359d500c8c238be Mon Sep 17 00:00:00 2001 From: Edward Rudd <urkle@outoforder.cc> Date: Tue, 09 Apr 2019 02:22:50 +0000 Subject: [PATCH] updae source to 2.0.9 source --- source/src/atomic/SDL_atomic.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source/src/atomic/SDL_atomic.c b/source/src/atomic/SDL_atomic.c index df49201..d0022cd 100644 --- a/source/src/atomic/SDL_atomic.c +++ b/source/src/atomic/SDL_atomic.c @@ -53,10 +53,11 @@ #endif #if defined(__WATCOMC__) && defined(__386__) +SDL_COMPILE_TIME_ASSERT(intsize, 4==sizeof(int)); #define HAVE_WATCOM_ATOMICS extern _inline int _SDL_xchg_watcom(volatile int *a, int v); #pragma aux _SDL_xchg_watcom = \ - "xchg [ecx], eax" \ + "lock xchg [ecx], eax" \ parm [ecx] [eax] \ value [eax] \ modify exact [eax]; -- Gitblit v1.9.3