public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] amdgcn: Implement proper locks: Fix 'newlib/libc/sys/amdgcn/include/sys/lock.h' for C++
@ 2024-04-04 14:04 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2024-04-04 14:04 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ed50a50b9b551ed693d28cd458a49e5196d27f06

commit ed50a50b9b551ed693d28cd458a49e5196d27f06
Author: Thomas Schwinge <tschwinge@baylibre.com>
Date:   Thu Apr 4 16:01:35 2024 +0200

    amdgcn: Implement proper locks: Fix 'newlib/libc/sys/amdgcn/include/sys/lock.h' for C++
    
    As of commit 7dd4eb1db9e1b1b9f14ef5b743705156e5f370e1
    "amdgcn: Implement proper locks", we get, by the thousands, for C++ code:
    
        In file included from [...]/newlib/libc/include/stdio.h:60,
                         from [...]:
        [...]/newlib/libc/include/sys/reent.h:911:1: error: expected declaration before '}' token

Diff:
---
 newlib/libc/sys/amdgcn/include/sys/lock.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/newlib/libc/sys/amdgcn/include/sys/lock.h b/newlib/libc/sys/amdgcn/include/sys/lock.h
index 0e0e667e5..1f41cf2f7 100644
--- a/newlib/libc/sys/amdgcn/include/sys/lock.h
+++ b/newlib/libc/sys/amdgcn/include/sys/lock.h
@@ -4,6 +4,10 @@
 #include <newlib.h>
 #include <_ansi.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef unsigned int _LOCK_T;
 typedef unsigned int _LOCK_RECURSIVE_T;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-04 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04 14:04 [newlib-cygwin/main] amdgcn: Implement proper locks: Fix 'newlib/libc/sys/amdgcn/include/sys/lock.h' for C++ Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).