This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
[glibc/zack/no-nested-includes] riscv: Do not use __has_include__
- From: Zack Weinberg <zack at sourceware dot org>
- To: glibc-cvs at sourceware dot org
- Date: 18 Jun 2019 15:29:13 -0000
- Subject: [glibc/zack/no-nested-includes] riscv: Do not use __has_include__
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=28dd3939221ab26c6774097e9596e30d9753f758
commit 28dd3939221ab26c6774097e9596e30d9753f758
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Jun 6 11:24:32 2019 +0200
riscv: Do not use __has_include__
The user-visible preprocessor construct is called __has_include.
Diff:
---
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/riscv/flush-icache.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 82ae580..89176cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-06-06 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
+ internal GCC preprocessor identifier __has_include__.
+
2019-06-05 Paul A. Clarke <pc@us.ibm.com>
* sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
diff --git a/sysdeps/unix/sysv/linux/riscv/flush-icache.c b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
index cd5c400..f2dfcc5 100644
--- a/sysdeps/unix/sysv/linux/riscv/flush-icache.c
+++ b/sysdeps/unix/sysv/linux/riscv/flush-icache.c
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <atomic.h>
#include <sys/cachectl.h>
-#if __has_include__ (<asm/syscalls.h>)
+#if __has_include (<asm/syscalls.h>)
# include <asm/syscalls.h>
#else
# include <asm/unistd.h>