[gnome-control-center] printers: Define missing constant



commit 3bd0ba44ae0a6573efd126c47e08b1dfb2333f6f
Author: Marek Kasik <mkasik redhat com>
Date:   Tue Mar 4 16:40:12 2014 +0100

    printers: Define missing constant
    
    Define HTTP_URI_STATUS_OK if compiling against CUPS 1.6 or lower.
    (HTTP_URI_OK was renamed to HTTP_URI_STATUS_OK in CUPS 1.7.)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725662

 panels/printers/pp-utils.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/printers/pp-utils.c b/panels/printers/pp-utils.c
index dd361fb..6c00b40 100644
--- a/panels/printers/pp-utils.c
+++ b/panels/printers/pp-utils.c
@@ -71,6 +71,9 @@ ippNextAttribute (ipp_t *ipp)
 }
 #endif
 
+#if (CUPS_VERSION_MAJOR == 1) && (CUPS_VERSION_MINOR <= 6)
+#define HTTP_URI_STATUS_OK HTTP_URI_OK
+#endif
 
 gchar *
 get_tag_value (const gchar *tag_string, const gchar *tag_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]