xref: /illumos-gate/usr/src/grub/grub-0.97/netboot/osdep.h (revision 2411ecfcc7e4d3dc7fc3f78b9e50601e50a8a56c)
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