Skip to content

Commit

Permalink
Removed support for _IPP_PRIVATE_STRUCTURES
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-friedrich-bitlab committed Jul 1, 2020
1 parent 86c36de commit 2a97267
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion ext/cups.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static VALUE cups_get_device_uri(VALUE self, VALUE printer)
{
if((attr = ippFindAttribute(response, "device-uri", IPP_TAG_URI)) != NULL)
{
return rb_str_new2(attr->values[0].string.text);
return rb_str_new2(ippGetString(attr, 0, NULL));
}
ippDelete(response);
}
Expand Down
3 changes: 0 additions & 3 deletions ext/ruby_cups.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Enable access to IPP private structures post Cups 1.5
// (In Mac OS 10.8 thru 10.9 specifically enabled by Apple but not 10.10)
#define _IPP_PRIVATE_STRUCTURES 1
#include <cups/cups.h>

// st.h is needed for ST_CONTINUE constant
Expand Down

0 comments on commit 2a97267

Please sign in to comment.