third_party/zlib/zlib.h: use HAVE___ATTRIBUTE__ instead of __GNUC__
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 23 Mar 2016 02:30:22 +0000 (15:30 +1300)
committerUri Simchoni <uri@samba.org>
Thu, 24 Mar 2016 17:43:33 +0000 (18:43 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Thu Mar 24 18:43:34 CET 2016 on sn-devel-144

third_party/zlib/zlib.h

index aa7f0825f4c8e65a6aa8c299aaa68b9ee2dee167..a303d77c00db499958bf410af2bc4a11379c0a2e 100644 (file)
@@ -213,7 +213,7 @@ typedef gz_header FAR *gz_headerp;
 #define zlib_version zlibVersion()
 /* for compatibility with versions < 1.0.2 */
 
-#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
+#ifdef HAVE___ATTRIBUTE__
 /** Use gcc attribute to check printf fns.  a1 is the 1-based index of
  * the parameter containing the format, and a2 the index of the first
  * argument. Note that some gcc 2.x versions don't handle this