summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorsin2015-03-13 23:09:15 +0000
committersin2015-03-13 23:09:15 +0000
commitd12254166a55d17932ea4143fbd50fb52539ff8b (patch)
tree5305a94b78698f8d94b20370e59647276c7b47d0 /include/stdio.h
parentc4abf4497ba24d716250af4186757b5c5952f54e (diff)
Restore C++ support
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h7
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
9extern "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