aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-06 20:43:31 +0800
committerJia Tan <jiat0218@gmail.com>2023-01-06 20:43:31 +0800
commit78e0561dfebaa9d5e34558de537efcda890e0629 (patch)
tree0940136175ade136d27cfa69c5c9d84215021217
parentBuild: Add missing stream_decoder_mt.c to .vcxproj files. (diff)
downloadxz-78e0561dfebaa9d5e34558de537efcda890e0629.tar.xz
Style: Change #if !defined() to #ifndef in mythread.h.
-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