diff options
| author | chai <chaifix@163.com> | 2019-01-31 18:38:35 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2019-01-31 18:38:35 +0800 |
| commit | 2ec55fd974a63b705a4777c256d2222c874fa043 (patch) | |
| tree | 48f1fea59ee9fc713a28a9aac3f05b98dc5ae66f /Source/3rdParty/SDL2/src/atomic/SDL_atomic.c | |
| parent | c581dfbf1e849f393861d15e82aa6446c0c1c310 (diff) | |
*SDL project
Diffstat (limited to 'Source/3rdParty/SDL2/src/atomic/SDL_atomic.c')
| -rw-r--r-- | Source/3rdParty/SDL2/src/atomic/SDL_atomic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/3rdParty/SDL2/src/atomic/SDL_atomic.c b/Source/3rdParty/SDL2/src/atomic/SDL_atomic.c index df49201..d0022cd 100644 --- a/Source/3rdParty/SDL2/src/atomic/SDL_atomic.c +++ b/Source/3rdParty/SDL2/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]; |
