mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	atomic: detect clang separately
This commit is contained in:
		@@ -36,9 +36,8 @@
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/* The __atomic_load_n() intrinsic showed up in different times for different compilers. */
 | 
			
		||||
#if defined(HAVE_GCC_ATOMICS)
 | 
			
		||||
#if defined(__clang__)
 | 
			
		||||
#   if __has_builtin(__atomic_load_n)
 | 
			
		||||
#  if __has_builtin(__atomic_load_n) || defined(HAVE_GCC_ATOMICS)
 | 
			
		||||
     /* !!! FIXME: this advertises as available in the NDK but uses an external symbol we don't have.
 | 
			
		||||
        It might be in a later NDK or we might need an extra library? --ryan. */
 | 
			
		||||
#    if !defined(__ANDROID__)
 | 
			
		||||
@@ -50,7 +49,6 @@
 | 
			
		||||
#     define HAVE_ATOMIC_LOAD_N 1
 | 
			
		||||
#   endif
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(__WATCOMC__) && defined(__386__)
 | 
			
		||||
SDL_COMPILE_TIME_ASSERT(intsize, 4==sizeof(int));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user