Avoid __GNUC__ warnings when defining DECLARE_DEPRECATED
authorRichard Levitte <levitte@openssl.org>
Mon, 9 Jul 2018 15:31:23 +0000 (17:31 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 10 Jul 2018 14:09:25 +0000 (16:09 +0200)
commit3550d9159f0c89b2ae1c01e81e31649d1b357d06
treec5c0eae083008c6fe5f1063dee21542ff9ab04ea
parent8977880603176bea3dda1f1accae1b774d2104ac
Avoid __GNUC__ warnings when defining DECLARE_DEPRECATED

We need to check that __GNUC__ is defined before trying to use it.
This demands a slightly different way to define DECLARE_DEPRECATED.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6680)
include/openssl/opensslconf.h.in