Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorPekka Seppänen <pexu@sourceware.mail.kapsi.fi>2023-08-30 12:16:36 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-11 10:23:05 +0300
commitc2d2bf34e6959615a3ba0edf4153d210501ba04f (patch)
tree9587bf20c95821127a156d50a2bb62691617d660 /newlib
parent7a1c717c8bba1d046c37c75c3d8c110aeba3cc09 (diff)
Reentrancy, attempt to always provide _Thread_local in <sys/reent.h>
Attempt to always provide _Thread_local in <sys/reent.h> by including <sys/cdefs.h>. The C specific keyword _Thread_local is not available unless targetting a suitable C version.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/reent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index a6c923f1c..a02e7c2bd 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -12,6 +12,7 @@ extern "C" {
#include <_ansi.h>
#include <stddef.h>
+#include <sys/cdefs.h>
#include <sys/_types.h>
#define _NULL 0