Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4680 | right-hear | 1 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
2 | #ifndef __dj_include_libc_stdiohk_h__ |
||
3 | #define __dj_include_libc_stdiohk_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 | /* Force stdiohk.o to get linked in, and that module has the |
||
16 | code for the stdio flush/fclose stuff. That .o causes the |
||
17 | hook function to get initialized also. */ |
||
18 | |||
19 | #include __DEV_CONFIG_H |
||
20 | |||
21 | #ifndef NEEDS_UNDERSCORES |
||
22 | __asm__(".long __stdio_cleanup_proc"); |
||
23 | #else |
||
24 | __asm__(".long ___stdio_cleanup_proc"); |
||
25 | #endif |
||
26 | |||
27 | #endif /* !_POSIX_SOURCE */ |
||
28 | #endif /* !__STRICT_ANSI__ */ |
||
29 | #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ |
||
30 | |||
31 | #ifndef __dj_ENFORCE_FUNCTION_CALLS |
||
32 | #endif /* !__dj_ENFORCE_FUNCTION_CALLS */ |
||
33 | |||
34 | #ifdef __cplusplus |
||
35 | } |
||
36 | #endif |
||
37 | |||
38 | #endif /* __dj_include_libc_stdiohk_h__ */ |