e_os2.h: Refine OSSL_SSIZE definition under UEFI environment
authorQin Long <qin.long@intel.com>
Tue, 4 Apr 2017 17:08:16 +0000 (01:08 +0800)
committerAndy Polyakov <appro@openssl.org>
Thu, 6 Apr 2017 14:16:05 +0000 (16:16 +0200)
commit005f6766284155645fa760cf764f85031e209f6c
tree67f76bae84ed5d036419d5830322a77d0fbf9d13
parent9dfc5b96874c477095f407c08141614e010a0b98
e_os2.h: Refine OSSL_SSIZE definition under UEFI environment

Under UEFI build environment, we may encounter the OSSL_SSIZE macro
re-definition error in e_os2.h if any module call OpenSSL API directly
by including "openssl/xxxx.h" (caused by the predefined _WIN32/_WIN64
macro, which should have been un-defined under OPENSSL_SYS_UEFI).

Though it's not one recommended usage, this patch could still eliminate
the possible build issue by refining the OSSL_SSIZE definition under
OPENSSL_SYS_UEFI.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3121)
include/openssl/e_os2.h