xref: /netbsd/sys/arch/sh3/include/cdefs.h (revision c6039432)
1 /*	$NetBSD: cdefs.h,v 1.6 2012/01/20 14:08:06 joerg Exp $	*/
2 
3 #ifndef _SH3_CDEFS_H_
4 #define	_SH3_CDEFS_H_
5 
6 #define	__ALIGNBYTES		(sizeof(int) - 1)
7 
8 /*
9  * The old NetBSD/sh3 ELF toolchain used underscores.  The new
10  * NetBSD/sh3 ELF toolchain does not.  The C pre-processor
11  * defines __NO_LEADING_UNDERSCORES__ for the new ELF toolchain.
12  */
13 
14 #if defined(__ELF__) && !defined(__NO_LEADING_UNDERSCORES__)
15 #define	__LEADING_UNDERSCORE
16 #endif
17 
18 #endif /* !_SH3_CDEFS_H_ */
19