diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-12 17:58:53 +0100 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2019-05-07 18:30:47 +0200 |
commit | feddf5a6943872f948ace6e48713aa22e7d34697 (patch) | |
tree | d43ac2fbf551fe23d9e1098837368c3d09d2f1fd /modules | |
parent | e847c030bde2cfa37533c1b26bb02d2e62208fc5 (diff) | |
download | gtk+-feddf5a6943872f948ace6e48713aa22e7d34697.tar.gz |
Detect CUPS ≥ 1.7
We support CUPS ≥ 1.2, but we use API that was introduced and deprecated
at a later point.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/printbackends/meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/printbackends/meson.build b/modules/printbackends/meson.build index 0e26d829f9..00ee33a80d 100644 --- a/modules/printbackends/meson.build +++ b/modules/printbackends/meson.build @@ -30,6 +30,9 @@ if enable_cups if cups_major_version > 1 or cups_minor_version >= 6 cdata.set('HAVE_CUPS_API_1_6', 1) endif + if cups_major_version > 1 or cups_minor_version >= 7 + cdata.set('HAVE_CUPS_API_2_0', 1) + endif if cc.compiles('#include <cups/http.h> \n http_t http; char *s = http.authstring;') cdata.set('HAVE_HTTP_AUTHSTRING', 1, |