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:22:29 +0000 (16:22 +0200)
commit9317235bbb43fbe8ee21cc3bfe0effb9ab6dee2e
treece96fb074e3ed52e0dd090a71502f803ad9dc938
parent9d7a0588b3e375fa29adca030656fed816cf18e5
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)

(cherry picked from commit 005f6766284155645fa760cf764f85031e209f6c)
include/openssl/e_os2.h