Skip to content

Commit

Permalink
Merge pull request #28 from sasa-friedrich-bitlab/hotfix/IPP_accessor…
Browse files Browse the repository at this point in the history
…_functions

Removed support for _IPP_PRIVATE_STRUCTURES
  • Loading branch information
m0wfo authored Jan 25, 2021
2 parents fb78905 + 2a97267 commit e5acf10
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 @@ -468,7 +468,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 e5acf10

Please sign in to comment.