src/atomic/SDL_atomic.c
changeset 12241 f72836cfb92b
parent 11811 5d94cb6b24d3
child 12503 806492103856
     1.1 --- a/src/atomic/SDL_atomic.c	Thu Sep 27 09:37:36 2018 +0300
     1.2 +++ b/src/atomic/SDL_atomic.c	Thu Sep 27 11:55:02 2018 +0300
     1.3 @@ -53,10 +53,11 @@
     1.4  #endif
     1.5  
     1.6  #if defined(__WATCOMC__) && defined(__386__)
     1.7 +SDL_COMPILE_TIME_ASSERT(intsize, 4==sizeof(int));
     1.8  #define HAVE_WATCOM_ATOMICS
     1.9  extern _inline int _SDL_xchg_watcom(volatile int *a, int v);
    1.10  #pragma aux _SDL_xchg_watcom = \
    1.11 -  "xchg [ecx], eax" \
    1.12 +  "lock xchg [ecx], eax" \
    1.13    parm [ecx] [eax] \
    1.14    value [eax] \
    1.15    modify exact [eax];