aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-06 20:43:31 +0800
committerLasse Collin <lasse.collin@tukaani.org>2023-01-09 16:33:53 +0200
commit39d2585dcd3e827cfc3c46025ab6708c4aeb36c6 (patch)
tree93a28bb1e1586e2c1b1b42c8d4f588856c58a0b3 /src
parentBuild: Add missing stream_decoder_mt.c to .vcxproj files. (diff)
downloadxz-39d2585dcd3e827cfc3c46025ab6708c4aeb36c6.tar.xz
Style: Change #if !defined() to #ifndef in mythread.h.
Diffstat (limited to '')
-rw-r--r--src/common/mythread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index a0dced19..37b5216b 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -108,7 +108,7 @@ mythread_sigmask(int how, const sigset_t *restrict set,
// If clock_gettime() isn't available, use gettimeofday() from <sys/time.h>
// as a fallback. gettimeofday() is in SUSv2 and thus is supported on all
// relevant POSIX systems.
-#if !defined(HAVE_CLOCK_GETTIME)
+#ifndef HAVE_CLOCK_GETTIME
# include <sys/time.h>
#endif