blob: f88af405b4f36aabd28ad46fa43331bcc171cb81 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* This file defines USE___THREAD to 1 or 0 to cut down on the #if mess. */
2
3#ifndef _include_tls_h
4#define _include_tls_h 1
5
6#include_next <tls.h>
7
8#if defined USE_TLS && USE_TLS && HAVE___THREAD \
9 && (!defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt)
10
11# define USE___THREAD 1
12
13#else
14
15# define USE___THREAD 0
16
17#endif
18
19#endif