From: Richard Levitte Date: Thu, 23 Feb 2017 13:41:20 +0000 (+0100) Subject: Check for the presence of _WIN32 rather than its value. X-Git-Tag: OpenSSL_1_1_1-pre1~2300 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=46958a043d51633ed36bcfb13ff048a3381366a6;p=oweals%2Fopenssl.git Check for the presence of _WIN32 rather than its value. Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/2727) --- diff --git a/apps/rehash.c b/apps/rehash.c index 23dbfd8daa..2ffe5c5683 100644 --- a/apps/rehash.c +++ b/apps/rehash.c @@ -287,10 +287,10 @@ static int ends_with_dirsep(const char *path) { if (*path != '\0') path += strlen(path) - 1; -# ifdef __VMS +# if defined __VMS if (*path == ']' || *path == '>' || *path == ':') return 1; -# elif _WIN32 +# elif defined _WIN32 if (*path == '\\') return 1; # endif