Use _WIN32 over WIN32 for preprocessor conditional

The intent seems to be that the WIN32 symbol is for things that are a direct
byproduct of being a windows-variant configuration and should be used for
feature en/disablement on windows systems.  Use of the _WIN32 symbol is more
widespread, being used to implement platform portability of more generic code.

We do define WIN32 in some situations in e_os.h, but that is not included
universally.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2642)
This commit is contained in:
Benjamin Kaduk 2016-12-29 11:38:24 -06:00 committed by Rich Salz
parent d4da1bb5ab
commit ac879ed62a

View file

@ -37,7 +37,7 @@
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# ifdef WIN32
# ifdef _WIN32
# include <memory.h>
# endif