Avoid __GNUC__ warnings when defining DECLARE_DEPRECATED
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Jul 2018 14:05:55 +0000 (16:05 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Jul 2018 13:32:15 +0000 (15:32 +0200)
commitdcb8333087d56eef97c482aabb506b8be8299cde
tree2040e36f825ba45a062a73bf2c2cfb210bb9b99b
parent5c06c7d748161697642bd4d1369acad4297abb3c
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: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6688)
include/openssl/opensslconf.h.in