diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-09-14 21:30:51 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-09-14 21:30:51 +0200 |
commit | 2cdaaab11ce3fc855361b3267bc25fe3b9fa1f6f (patch) | |
tree | 65330f7df758110dc3db9a1c1c5ca6a2935bce64 /threads.c | |
parent | abbda93c723b337ae647ccb398c23eeb1868add4 (diff) | |
download | libxml2-2cdaaab11ce3fc855361b3267bc25fe3b9fa1f6f.tar.gz |
Change preprocessor OS tests to __linux__
"linux" without leading underscores is deprecated and less reliable.
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ static int libxml_is_threaded = -1; #if defined(__GNUC__) && defined(__GLIBC__) -#ifdef linux +#ifdef __linux__ #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) #pragma weak pthread_once #pragma weak pthread_getspecific @@ -68,7 +68,7 @@ static int libxml_is_threaded = -1; #pragma weak pthread_key_delete #pragma weak pthread_cond_signal #endif -#endif /* linux */ +#endif /* __linux__ */ #endif /* defined(__GNUC__) && defined(__GLIBC__) */ #endif /* HAVE_PTHREAD_H */ |