aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-04-04 16:01:35 +0200
committerThomas Schwinge <tschwinge@baylibre.com>2024-04-04 16:01:35 +0200
commited50a50b9b551ed693d28cd458a49e5196d27f06 (patch)
tree120d76dec71c4f9a26a356062a04e2dd48a8aa56
parentdb454e9868c09fe3bab434d55a50ea7797b01f2c (diff)
downloadnewlib-ed50a50b9b551ed693d28cd458a49e5196d27f06.zip
newlib-ed50a50b9b551ed693d28cd458a49e5196d27f06.tar.gz
newlib-ed50a50b9b551ed693d28cd458a49e5196d27f06.tar.bz2
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
-rw-r--r--newlib/libc/sys/amdgcn/include/sys/lock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/sys/amdgcn/include/sys/lock.h b/newlib/libc/sys/amdgcn/include/sys/lock.h
index 0e0e667..1f41cf2 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;