aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-01-27 12:39:57 +0100
committerCorinna Vinschen <corinna@vinschen.de>2022-05-13 13:58:39 +0200
commitd4fa3b4abbf70a586034771267be8e4c1690a023 (patch)
tree6c32b49a22b6ebf936cb7b4e0d970f413bc84d19 /winsup/cygwin/dcrt0.cc
parent2aa37fed76ea644bfb4bcc348aceec9f19777195 (diff)
downloadnewlib-d4fa3b4abbf70a586034771267be8e4c1690a023.zip
newlib-d4fa3b4abbf70a586034771267be8e4c1690a023.tar.gz
newlib-d4fa3b4abbf70a586034771267be8e4c1690a023.tar.bz2
Cygwin: config.h: stop including auto-generated tlsoffsets.h file
This was a hack to begin with. Clean this mess up: - Move definition of CYGTLS_PADSIZE to cygwin/config.h and drop local cygtls_padsize.h - Rename CYGTLS_PADSIZE to __CYGTLS_PADSIZE__ to keep namespace clean. Redefine as macro, rather than as const. - Move struct _reent first in struct _cygtls to allow using __CYGTLS_PADSIZE__ as offset in __getreent(). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index c11f719..030d99b 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -1103,7 +1103,7 @@ dll_crt0 (per_process *uptr)
}
/* This must be called by anyone who uses LoadLibrary to load cygwin1.dll.
- You must have CYGTLS_PADSIZE bytes reserved at the bottom of the stack
+ You must have __CYGTLS_PADSIZE__ bytes reserved at the bottom of the stack
calling this function, and that storage must not be overwritten until you
unload cygwin1.dll, as it is used for _my_tls. It is best to load
cygwin1.dll before spawning any additional threads in your process.