Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include Add missing __BEGIN_DECLS/__END_DECLS ...
details: https://anonhg.NetBSD.org/src/rev/61ba99b7f80a
branches: trunk
changeset: 1014782:61ba99b7f80a
user: martin <martin%NetBSD.org@localhost>
date: Sat Oct 03 09:56:00 2020 +0000
description:
Add missing __BEGIN_DECLS/__END_DECLS to force function declarations into
the "C" namespace.
diffstat:
sys/arch/mips/include/mcontext.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 9607f6efca98 -r 61ba99b7f80a sys/arch/mips/include/mcontext.h
--- a/sys/arch/mips/include/mcontext.h Sat Oct 03 09:48:40 2020 +0000
+++ b/sys/arch/mips/include/mcontext.h Sat Oct 03 09:56:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcontext.h,v 1.23 2020/07/26 08:08:41 simonb Exp $ */
+/* $NetBSD: mcontext.h,v 1.24 2020/10/03 09:56:00 martin Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -196,6 +196,8 @@
__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000);
__CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0);
+__BEGIN_DECLS
+
static __inline struct tls_tcb *
__lwp_gettcb_fast(void)
{
@@ -233,6 +235,7 @@
__tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1;
_lwp_setprivate(__tcb);
}
+__END_DECLS
#endif
#endif /* _MIPS_MCONTEXT_H_ */
Home |
Main Index |
Thread Index |
Old Index