Skip to content

Commit

Permalink
Fix Yosemite build
Browse files Browse the repository at this point in the history
From CUPS 1.6, the visibility of parts of the IPP data structures controlled are by the preprocessor symbol IPP_PRIVATE_STRUCTURES.
Visibility is enabled specifically for Mac OS X 10.8 and 10.9 but not for Mac OS X 10.10 in CUPS. This update forces the required visibility.
  • Loading branch information
davidbernard committed Dec 5, 2014
1 parent 7e444e3 commit 99bd138
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
== Version 0.0.10
2014-12-05: Build compatibility with Mac OS X 10.10 (Yosemite)

== Version 0.0.7

2010-11-12: PrintJob instances now take an options hash, thanks to [ransombriggs]
Expand Down
2 changes: 1 addition & 1 deletion cups.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{cups}
s.version = "0.1.9"
s.version = "0.1.10"
s.authors = ["Nathan Stitt", "Tadej Murovec", "Ivan Turkovic", "Chris Mowforth"]
s.email = ["[email protected]", "[email protected]", "[email protected]", "[email protected]"]
s.summary = "A lightweight Ruby library for printing."
Expand Down
3 changes: 3 additions & 0 deletions ext/ruby_cups.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// 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 99bd138

Please sign in to comment.