This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 1/8] Rename __sentinel to __null_sentinel
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: pfg <pfg at FreeBSD dot org>
- Date: Tue, 4 Apr 2017 09:04:52 +0200
- Subject: [PATCH 1/8] Rename __sentinel to __null_sentinel
- Authentication-results: sourceware.org; auth=none
- References: <1491289499-30548-1-git-send-email-sebastian.huber@embedded-brains.de>
From: pfg <pfg@FreeBSD.org>
GCC 5 uses a conflicting __sentinel definition in include/c++/bits/stl_algo.h
Reported by: matteo
---
newlib/libc/include/sys/cdefs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index f569fc4..1e3c6b0 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -464,7 +464,7 @@
#endif
#if __GNUC_PREREQ__(4, 0)
-#define __sentinel __attribute__((__sentinel__))
+#define __null_sentinel __attribute__((__sentinel__))
#define __exported __attribute__((__visibility__("default")))
/* Only default visibility is supported on PE/COFF targets. */
#ifndef __CYGWIN__
@@ -473,7 +473,7 @@
#define __hidden
#endif
#else
-#define __sentinel
+#define __null_sentinel
#define __exported
#define __hidden
#endif
--
1.8.4.5