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