This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Add __BEGIN_DECLS and __END_DECLS for C++
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 11 May 2017 07:18:36 -0700
- Subject: [PATCH] Add __BEGIN_DECLS and __END_DECLS for C++
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Add __BEGIN_DECLS and __END_DECLS to support C++.
Any comments?
H.J.
--
* include/ifunc-impl-list.h: Add __BEGIN_DECLS and __END_DECLS.
---
include/ifunc-impl-list.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/ifunc-impl-list.h b/include/ifunc-impl-list.h
index 22ca05f..f4be574 100644
--- a/include/ifunc-impl-list.h
+++ b/include/ifunc-impl-list.h
@@ -22,6 +22,8 @@
#include <stdbool.h>
#include <stddef.h>
+__BEGIN_DECLS
+
struct libc_ifunc_impl
{
/* The name of function to be tested. */
@@ -53,4 +55,6 @@ extern size_t __libc_ifunc_impl_list (const char *name,
struct libc_ifunc_impl *array,
size_t max);
+__END_DECLS
+
#endif /* ifunc-impl-list.h */
--
2.9.3