mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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)
This commit is contained in:
parent
2ac915f162
commit
46958a043d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user