xref: /illumos-gate/usr/src/grub/grub-0.97/netboot/osdep.h (revision c9eab9d4e096bb9b983e9b007577edfa73c32eff)
1 #ifndef	_OSDEP_H
2 #define _OSDEP_H
3 
4 #define __unused __attribute__((unused))
5 #define __aligned __attribute__((aligned(16)))
6 
7 #include "io.h"
8 #include "byteswap.h"
9 #include "latch.h"
10 
11 #if defined(__sun)
12 typedef	unsigned long Address;
13 #endif
14 
15 /* ANSI prototyping macro */
16 #ifdef	__STDC__
17 #  define	P(x)	x
18 #else
19 #  define	P(x)	()
20 #endif
21 
22 #endif
23