Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ |
2 | #ifndef __dj_include_sys_sysmacros_h_ |
||
3 | #define __dj_include_sys_sysmacros_h_ |
||
4 | |||
5 | #ifdef __cplusplus |
||
6 | extern "C" { |
||
7 | #endif |
||
8 | |||
9 | #ifndef __dj_ENFORCE_ANSI_FREESTANDING |
||
10 | |||
11 | #ifndef __STRICT_ANSI__ |
||
12 | |||
13 | #ifndef _POSIX_SOURCE |
||
14 | |||
15 | #define major(x) ((int)(((unsigned)(x) >> 8) & 0xff)) |
||
16 | #define minor(x) ((int)((x) & 0xff)) |
||
17 | |||
18 | #define makedev(x,y) ((dev_t)(((x) << 8) | (y))) |
||
19 | |||
20 | #endif /* !_POSIX_SOURCE */ |
||
21 | #endif /* !__STRICT_ANSI__ */ |
||
22 | #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ |
||
23 | |||
24 | #ifndef __dj_ENFORCE_FUNCTION_CALLS |
||
25 | #endif /* !__dj_ENFORCE_FUNCTION_CALLS */ |
||
26 | |||
27 | #ifdef __cplusplus |
||
28 | } |
||
29 | #endif |
||
30 | |||
31 | #endif /* !__dj_include_sys_sysmacros_h_ */><> |