summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2016-03-23 15:30:22 +1300
committerUri Simchoni <uri@samba.org>2016-03-24 18:43:33 +0100
commitd64877541036c6b82aa0204671bfdae08936b529 (patch)
treebfff8f77c28b491495f11f51d831c00941890f6b /third_party
parent82258aa2a6ff1a8d139f60abb170aaffb0934025 (diff)
downloadsamba-d64877541036c6b82aa0204671bfdae08936b529.tar.gz
third_party/zlib/zlib.h: use HAVE___ATTRIBUTE__ instead of __GNUC__
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
Diffstat (limited to 'third_party')
-rw-r--r--third_party/zlib/zlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/zlib/zlib.h b/third_party/zlib/zlib.h
index aa7f0825f4c..a303d77c00d 100644
--- a/third_party/zlib/zlib.h
+++ b/third_party/zlib/zlib.h
@@ -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