Check for the presence of _WIN32 rather than its value.
authorRichard Levitte <levitte@openssl.org>
Thu, 23 Feb 2017 13:41:20 +0000 (14:41 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Feb 2017 13:41:20 +0000 (14:41 +0100)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2727)

apps/rehash.c

index 23dbfd8daa41760847b76743332abcefd145b175..2ffe5c5683c6bbd1106520816f51518b5e7def86 100644 (file)
@@ -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