Fix make lib/stdatomic.c gcc compatible
This commit is contained in:
		
							parent
							
								
									f8e50d23f5
								
							
						
					
					
						commit
						1432574b2b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,8 @@
 | 
			
		|||
        *(volatile TYPE *)atom = value; \
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#if defined(__GNUC__) 
 | 
			
		||||
/* Some tcc targets set __GNUC__ */
 | 
			
		||||
#if defined(__GNUC__) && !defined(__TINYC__)
 | 
			
		||||
#define	ATOMIC_LOAD(t,a,b,c)              t b; __atomic_load((t *)a, (t *)&b, c)
 | 
			
		||||
#define COMPARE_EXCHANGE(t,a,b,c,d,e,f)   __atomic_compare_exchange((t *)a,b,&c,d,e,f)
 | 
			
		||||
#else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue