summaryrefslogtreecommitdiff
path: root/sys/arch/sh3/include/cdefs.h
blob: f455df2e979c0cb1040edf14d556619d86c5174a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*	$NetBSD: cdefs.h,v 1.6 2012/01/20 14:08:06 joerg Exp $	*/

#ifndef _SH3_CDEFS_H_
#define	_SH3_CDEFS_H_

#define	__ALIGNBYTES		(sizeof(int) - 1)

/*
 * The old NetBSD/sh3 ELF toolchain used underscores.  The new
 * NetBSD/sh3 ELF toolchain does not.  The C pre-processor
 * defines __NO_LEADING_UNDERSCORES__ for the new ELF toolchain.
 */

#if defined(__ELF__) && !defined(__NO_LEADING_UNDERSCORES__)
#define	__LEADING_UNDERSCORE
#endif

#endif /* !_SH3_CDEFS_H_ */