[openssl-dev] Testing for a type with a define in e_os2.h?
Viktor Dukhovni
openssl-users at dukhovni.org
Sat Mar 26 22:44:19 UTC 2016
On Sat, Mar 26, 2016 at 06:14:05PM -0400, Jeffrey Walton wrote:
> e_os2.h has this around line 260:
>
> # if defined(OPENSSL_SYS_UEFI) && !defined(ssize_t)
> # define ossl_ssize_t int
> # define OSSL_SSIZE_MAX INT_MAX
> # endif
>
> I don't believe you can test for a type by using 'defined(t)'. Also
> see http://stackoverflow.com/questions/12558538/how-can-i-check-a-certain-type-is-already-defined-in-c-compiler.
Thanks for the heads-up. Perhaps that condition should have been
defined(ossl_ssize_t). In any case, if UEFI code runs in 32-bit
mode, then likely the additional condition is not (or rarely) needed
at present.
--
Viktor.
More information about the openssl-dev
mailing list