Skip to content

Commit

Permalink
Limit the compile error to the case where we actually define the memo…
Browse files Browse the repository at this point in the history
…ry barrier macro as the function
  • Loading branch information
slouken committed Jul 1, 2019
1 parent cc47810 commit a8bea85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomic/SDL_atomic.c
Expand Up @@ -289,7 +289,7 @@ SDL_AtomicGetPtr(void **a)
#endif
}

#ifdef __thumb__
#if defined(__thumb__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_5TE__))
#error This file should be built in arm mode so the mcr instruction is available for memory barriers
#endif

Expand Down

0 comments on commit a8bea85

Please sign in to comment.