summaryrefslogtreecommitdiff
path: root/include/strings.h
diff options
context:
space:
mode:
authorjvoisin2026-05-01 00:46:20 +0200
committerjvoisin2026-05-01 00:46:20 +0200
commit1457895d6b34cf2bfc5fddd56becaa08d4b2edfe (patch)
treeb184da0235267aebf4c7b2092106fabcf15b0b4f /include/strings.h
parentddd22b2f533db9c0da0bb262fbafa51f67c8587e (diff)
Add a guarded __extension__ before #include_next in strings.h
Diffstat (limited to 'include/strings.h')
-rw-r--r--include/strings.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/strings.h b/include/strings.h
index 6a17ca3..5147936 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -17,6 +17,9 @@
17#ifndef _FORTIFY_STRINGS_H 17#ifndef _FORTIFY_STRINGS_H
18#define _FORTIFY_STRINGS_H 18#define _FORTIFY_STRINGS_H
19 19
20#if !defined(__cplusplus) && !defined(__clang__)
21__extension__
22#endif
20#include_next <strings.h> 23#include_next <strings.h>
21 24
22#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 25#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0