Match glibc behaviour to expose the public bswap_* macros only with an explicity #include <byteswap.h>; #include'ing <endian.h> should not expose them. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
		
			
				
	
	
		
			19 lines
		
	
	
		
			385 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			385 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* byteswap.h
 | |
| 
 | |
| This file is part of Cygwin.
 | |
| 
 | |
| This software is a copyrighted work licensed under the terms of the
 | |
| Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
 | |
| details. */
 | |
| 
 | |
| #ifndef _BYTESWAP_H
 | |
| #define _BYTESWAP_H
 | |
| 
 | |
| #include <bits/byteswap.h>
 | |
| 
 | |
| #define bswap_16(x) __bswap_16(x)
 | |
| #define bswap_32(x) __bswap_32(x)
 | |
| #define bswap_64(x) __bswap_64(x)
 | |
| 
 | |
| #endif /* _BYTESWAP_H */
 |