GSTLS.h: Change guard to check for /value/ of GS_USE_GNUTLS.

Previously, code checked for whether its defined or not. This
preprocessor  constant might be defined with a zero value
indicating desire not to use GnuTLS, which would still pass the
old check.
This commit is contained in:
Ivan Vučica 2019-02-12 19:19:01 +00:00
parent 921f7521ff
commit 9d67048ff0
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2019-02-12 Ivan Vucica <ivan@vucica.net>
* Headers/GNUstepBase/GSTLS.h: Change guard to check for value of
GS_USE_GNUTLS and not for its defined state. This preprocessor
constant might be defined with a zero value indicating desire not to
use GnuTLS, which would still pass the old check.
2019-02-11 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.m: Improve thread safety with NSZombie particularly

View file

@ -39,7 +39,7 @@ extern NSString * const GSTLSRevokeFile;
extern NSString * const GSTLSServerName;
extern NSString * const GSTLSVerify;
#if defined(GS_USE_GNUTLS)
#if GS_USE_GNUTLS
/* Temporarily redefine 'id' in case the headers use the objc reserved word.
*/
#define id GNUTLSID