summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa2022-11-01 20:14:54 +0100
committerjvoisin2023-06-25 18:13:11 +0200
commitadae76af26e498af6c3004a52a4b1de2c6fd91c3 (patch)
treea5ce85d93449234065eb8bf891030dd219e92ed1
parent5827cef597d2b9b87b950c9b50023d11b1363c04 (diff)
avoid __extension__ with clang
It seems useless and triggers 'error: expected external declaration'
-rw-r--r--include/poll.h2
-rw-r--r--include/stdio.h2
-rw-r--r--include/stdlib.h4
-rw-r--r--include/string.h2
-rw-r--r--include/sys/select.h2
-rw-r--r--include/sys/socket.h2
-rw-r--r--include/unistd.h2
-rw-r--r--include/wchar.h8
8 files changed, 12 insertions, 12 deletions
diff --git a/include/poll.h b/include/poll.h
index 0500ab4..e89b4e7 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -16,7 +16,7 @@
16#ifndef _FORTIFY_POLL_H 16#ifndef _FORTIFY_POLL_H
17#define _FORTIFY_POLL_H 17#define _FORTIFY_POLL_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <poll.h> 22#include_next <poll.h>
diff --git a/include/stdio.h b/include/stdio.h
index 1b1cd46..5102d24 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -16,7 +16,7 @@
16#ifndef _FORTIFY_STDIO_H 16#ifndef _FORTIFY_STDIO_H
17#define _FORTIFY_STDIO_H 17#define _FORTIFY_STDIO_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <stdio.h> 22#include_next <stdio.h>
diff --git a/include/stdlib.h b/include/stdlib.h
index 8642e83..bc93b60 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -16,14 +16,14 @@
16#ifndef _FORTIFY_STDLIB_H 16#ifndef _FORTIFY_STDLIB_H
17#define _FORTIFY_STDLIB_H 17#define _FORTIFY_STDLIB_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <stdlib.h> 22#include_next <stdlib.h>
23 23
24#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 24#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
25#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 25#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
26#ifndef __cplusplus 26#if !defined(__cplusplus) && !defined(__clang__)
27__extension__ 27__extension__
28#endif 28#endif
29#include_next <limits.h> 29#include_next <limits.h>
diff --git a/include/string.h b/include/string.h
index 8737f97..c9f8839 100644
--- a/include/string.h
+++ b/include/string.h
@@ -16,7 +16,7 @@
16#ifndef _FORTIFY_STRING_H 16#ifndef _FORTIFY_STRING_H
17#define _FORTIFY_STRING_H 17#define _FORTIFY_STRING_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <string.h> 22#include_next <string.h>
diff --git a/include/sys/select.h b/include/sys/select.h
index 1f19672..1a5afbe 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -16,7 +16,7 @@
16#ifndef _FORTIFY_SYS_SELECT_H 16#ifndef _FORTIFY_SYS_SELECT_H
17#define _FORTIFY_SYS_SELECT_H 17#define _FORTIFY_SYS_SELECT_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <sys/select.h> 22#include_next <sys/select.h>
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 21a3cf1..604d65a 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -16,7 +16,7 @@
16#ifndef _FORTIFY_SYS_SOCKET_H 16#ifndef _FORTIFY_SYS_SOCKET_H
17#define _FORTIFY_SYS_SOCKET_H 17#define _FORTIFY_SYS_SOCKET_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <sys/socket.h> 22#include_next <sys/socket.h>
diff --git a/include/unistd.h b/include/unistd.h
index 1b89251..818adaa 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -16,7 +16,7 @@
16#ifndef _FORTIFY_UNISTD_H 16#ifndef _FORTIFY_UNISTD_H
17#define _FORTIFY_UNISTD_H 17#define _FORTIFY_UNISTD_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <unistd.h> 22#include_next <unistd.h>
diff --git a/include/wchar.h b/include/wchar.h
index 0fba370..4f25b0c 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -16,19 +16,19 @@
16#ifndef _FORTIFY_WCHAR_H 16#ifndef _FORTIFY_WCHAR_H
17#define _FORTIFY_WCHAR_H 17#define _FORTIFY_WCHAR_H
18 18
19#ifndef __cplusplus 19#if !defined(__cplusplus) && !defined(__clang__)
20__extension__ 20__extension__
21#endif 21#endif
22#include_next <limits.h> 22#include_next <limits.h>
23#ifndef __cplusplus 23#if !defined(__cplusplus) && !defined(__clang__)
24__extension__ 24__extension__
25#endif 25#endif
26#include_next <stdlib.h> 26#include_next <stdlib.h>
27#ifndef __cplusplus 27#if !defined(__cplusplus) && !defined(__clang__)
28__extension__ 28__extension__
29#endif 29#endif
30#include_next <string.h> 30#include_next <string.h>
31#ifndef __cplusplus 31#if !defined(__cplusplus) && !defined(__clang__)
32__extension__ 32__extension__
33#endif 33#endif
34#include_next <wchar.h> 34#include_next <wchar.h>