diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2016-03-23 15:30:22 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-08-02 12:46:24 +0200 |
commit | ea0770f049001d8d0123f2e6f4a9945ec25ec8f6 (patch) | |
tree | 1298c33474f2253d4d7355a15003790b113adec3 /third_party | |
parent | ceb85424856daf1379f440220852a4abb2a61b46 (diff) | |
download | samba-ea0770f049001d8d0123f2e6f4a9945ec25ec8f6.tar.gz |
third_party/zlib/zlib.h: use HAVE___ATTRIBUTE__ instead of __GNUC__
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11750
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
(cherry picked from commit d64877541036c6b82aa0204671bfdae08936b529)
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/zlib/zlib.h | 2 |
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 |