diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-08-27 06:41:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-08-27 06:41:29 +0000 |
commit | b50f38778c306b3f0ec0c3ed05acf9ce10508aa4 (patch) | |
tree | fb5b26cc02ec01c04f8573a2103b11c412aab6fc /sysdeps | |
parent | 38325923950d9dbdad735aa4bc8ce54977ef572c (diff) | |
download | glibc-b50f38778c306b3f0ec0c3ed05acf9ce10508aa4.tar.gz glibc-b50f38778c306b3f0ec0c3ed05acf9ce10508aa4.tar.xz glibc-b50f38778c306b3f0ec0c3ed05acf9ce10508aa4.zip |
Update.
2002-08-26 Ulrich Drepper <drepper@redhat.com> * libio/Makefile (tests): Add bug-fopena+. * libio/bug-fopena+.c: New file. * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings. * locale/xlocale.c: Fix the last change. The variable still has to end in _data. * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)] (__libc_tsd_set): Add _data prefix to variable name.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/bits/libc-tsd.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/generic/bits/libc-tsd.h b/sysdeps/generic/bits/libc-tsd.h index fc17be108e..3c77e1519f 100644 --- a/sysdeps/generic/bits/libc-tsd.h +++ b/sysdeps/generic/bits/libc-tsd.h @@ -51,11 +51,14 @@ #if USE_TLS && HAVE___THREAD # define __libc_tsd_define(CLASS, KEY) CLASS __thread void *__libc_tsd_##KEY; + +# define __libc_tsd_get(KEY) (__libc_tsd_##KEY) +# define __libc_tsd_set(KEY, VALUE) (__libc_tsd_##KEY = (VALUE)) #else -# define __libc_tsd_define(CLASS, KEY) CLASS void *__libc_tsd_##KEY; -#endif +# define __libc_tsd_define(CLASS, KEY) CLASS void *__libc_tsd_##KEY##_data; -#define __libc_tsd_get(KEY) (__libc_tsd_##KEY) -#define __libc_tsd_set(KEY, VALUE) (__libc_tsd_##KEY = (VALUE)) +# define __libc_tsd_get(KEY) (__libc_tsd_##KEY##_data) +# define __libc_tsd_set(KEY, VALUE) (__libc_tsd_##KEY##_data = (VALUE)) +#endif #endif /* bits/libc-tsd.h */ |