newlib: don't use __visibility__ attrribute on Cygwin
gcc doesn't support visibility attribute on PE/COFF platforms Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		
							parent
							
								
									6f485ba026
								
							
						
					
					
						commit
						054ff18f5f
					
				|  | @ -235,17 +235,22 @@ eval_as_double (double x) | |||
| } | ||||
| 
 | ||||
| #ifdef __GNUC__ | ||||
| # define HIDDEN __attribute__ ((__visibility__ ("hidden"))) | ||||
| # define NOINLINE __attribute__ ((noinline)) | ||||
| # define likely(x) __builtin_expect (!!(x), 1) | ||||
| # define unlikely(x) __builtin_expect (x, 0) | ||||
| #else | ||||
| # define HIDDEN | ||||
| # define NOINLINE | ||||
| # define likely(x) (x) | ||||
| # define unlikely(x) (x) | ||||
| #endif | ||||
| 
 | ||||
| /* gcc emitting PE/COFF doesn't support visibility */ | ||||
| #if defined (__GNUC__) && !defined (__CYGWIN__) | ||||
| # define HIDDEN __attribute__ ((__visibility__ ("hidden"))) | ||||
| #else | ||||
| # define HIDDEN | ||||
| #endif | ||||
| 
 | ||||
| /* Error handling tail calls for special cases, with a sign argument.
 | ||||
|    The sign of the return value is set if the argument is non-zero.  */ | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue