diff options
Diffstat (limited to 'include/stdio.h')
| -rw-r--r-- | include/stdio.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index f87bd59..5cf5b13 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
| @@ -5,7 +5,10 @@ | |||
| 5 | 5 | ||
| 6 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 | 6 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 |
| 7 | 7 | ||
| 8 | #ifndef __cplusplus | 8 | #ifdef __cplusplus |
| 9 | extern "C" { | ||
| 10 | #endif | ||
| 11 | |||
| 9 | #undef fgets | 12 | #undef fgets |
| 10 | #undef fread | 13 | #undef fread |
| 11 | #undef fwrite | 14 | #undef fwrite |
| @@ -114,6 +117,8 @@ int sprintf(char *s, const char *fmt, ...) | |||
| 114 | return r; | 117 | return r; |
| 115 | } | 118 | } |
| 116 | 119 | ||
| 120 | #ifdef __cplusplus | ||
| 121 | } | ||
| 117 | #endif | 122 | #endif |
| 118 | 123 | ||
| 119 | #endif | 124 | #endif |
