summaryrefslogtreecommitdiff
path: root/threads.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2017-09-14 21:30:51 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2017-09-14 21:30:51 +0200
commit2cdaaab11ce3fc855361b3267bc25fe3b9fa1f6f (patch)
tree65330f7df758110dc3db9a1c1c5ca6a2935bce64 /threads.c
parentabbda93c723b337ae647ccb398c23eeb1868add4 (diff)
downloadlibxml2-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/threads.c b/threads.c
index 8c572634..e52f2638 100644
--- a/threads.c
+++ b/threads.c
@@ -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 */