summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorsin2015-03-11 09:26:11 +0000
committersin2015-03-11 09:26:11 +0000
commit8604f138c55ab4904a2fd9b7edce2b688c70e6c0 (patch)
treeb3cc05536f3b7be32faa9dd75d0babbf5fcdbdc5 /include/unistd.h
parent1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212 (diff)
Add ifdef guards for C++ code
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 6b502b5..2403db1 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -5,6 +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#ifdef __cplusplus
9extern "C" {
10#endif
11
8static inline __attribute__ ((always_inline)) 12static inline __attribute__ ((always_inline))
9size_t 13size_t
10__fortify_confstr(int name, char *buf, size_t len) 14__fortify_confstr(int name, char *buf, size_t len)
@@ -168,6 +172,10 @@ __fortify_write(int fd, const void *buf, size_t n)
168#undef write 172#undef write
169#define write(fd, buf, n) __fortify_write(fd, buf, n) 173#define write(fd, buf, n) __fortify_write(fd, buf, n)
170 174
175#ifdef __cplusplus
176}
177#endif
178
171#endif 179#endif
172 180
173#endif 181#endif