From 1dd497be57acd72748439db3090b1ca5561340a4 Mon Sep 17 00:00:00 2001 From: bel2125 Date: Fri, 25 Aug 2017 23:15:34 +0200 Subject: [PATCH] Use #if defined(_MSC_VER) instead of #if _MSC_VER --- lib/gettimeofday.c | 2 +- lib/libcompat.h | 2 +- src/check.h.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index 62be4e9..e2ee0b1 100644 --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -29,7 +29,7 @@ int gettimeofday(struct timeval *tv, void *tz) { -#if _MSC_VER +#if defined(_MSC_VER) union { __int64 ns100; /*time since 1 Jan 1601 in 100ns units */ diff --git a/lib/libcompat.h b/lib/libcompat.h index 0aee471..8694e4f 100644 --- a/lib/libcompat.h +++ b/lib/libcompat.h @@ -54,7 +54,7 @@ #define CK_DLL_EXP #endif -#if _MSC_VER +#if defined(_MSC_VER) #include /* struct timeval, API used in gettimeofday implementation */ #include /* read, write */ #include /* getpid */ diff --git a/src/check.h.in b/src/check.h.in index 8771146..4f49702 100644 --- a/src/check.h.in +++ b/src/check.h.in @@ -63,7 +63,7 @@ CK_CPPSTART #include -#if _MSC_VER +#if defined(_MSC_VER) /* define pid_t for Windows, as it is needed later */ #define pid_t int #endif /* _MSC_VER */ -- 2.40.0