提交 ac879ed6 编写于 作者: B Benjamin Kaduk 提交者: Rich Salz

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: NAndy Polyakov <appro@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2642)
上级 d4da1bb5
......@@ -37,7 +37,7 @@
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# ifdef WIN32
# ifdef _WIN32
# include <memory.h>
# endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册