Patched to compile on Visual Studio (typo).
authorRyan C. Gordon <icculus@icculus.org>
Mon, 25 Jun 2018 23:00:38 -0400
changeset 1204058425859a4e5
parent 12039 ecc19ca324f7
child 12041 f34f7903df97
Patched to compile on Visual Studio (typo).
src/atomic/SDL_spinlock.c
     1.1 --- a/src/atomic/SDL_spinlock.c	Mon Jun 25 16:34:16 2018 -0400
     1.2 +++ b/src/atomic/SDL_spinlock.c	Mon Jun 25 23:00:38 2018 -0400
     1.3 @@ -124,7 +124,7 @@
     1.4  #if (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
     1.5      #define PAUSE_INSTRUCTION() __asm__ __volatile__("pause\n")  /* Clang lets you do REP NOP, GCC wants PAUSE. */
     1.6  #elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
     1.7 -    #define PAUSE_INSRUCTION() _mm_pause()  /* this is actually "rep nop" and not a SIMD instruction. No inline asm in MSVC x86-64! */
     1.8 +    #define PAUSE_INSTRUCTION() _mm_pause()  /* this is actually "rep nop" and not a SIMD instruction. No inline asm in MSVC x86-64! */
     1.9  #elif defined(__WATCOMC__) && defined(__386__)
    1.10      /* watcom assembler won't let you do PAUSE, but refuses REP NOP as an invalid combination. Hardcode the bytes. */
    1.11      extern _inline void PAUSE_INSTRUCTION(void);