diff options
author | Richard Levitte <levitte@openssl.org> | 2017-02-23 14:41:20 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-02-23 14:41:20 +0100 |
commit | 46958a043d51633ed36bcfb13ff048a3381366a6 (patch) | |
tree | f998baf3a2d4900d12f98d4dbc3b9ba1c366c6e0 /apps/rehash.c | |
parent | 2ac915f16218982f48dbc799b8308a07441d2e35 (diff) |
Check for the presence of _WIN32 rather than its value.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2727)
Diffstat (limited to 'apps/rehash.c')
-rw-r--r-- | apps/rehash.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |