Skip to content

Commit

Permalink
Removed the conditional include from ruby_cups.h for ruby.h/st.h
Browse files Browse the repository at this point in the history
This will raise a warning on pre Mavericks version of Mac OSX,
but will still compile successfully back to Ruby 1.8.7 on Mac OSX Lion
for sure.

This fixes compatibility with Mavericks.
  • Loading branch information
bigtunacan committed May 29, 2014
1 parent 26c372d commit 6d0ed4b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ext/ruby_cups.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#include <cups/cups.h>

// st.h is needed for ST_CONTINUE constant
#ifdef __APPLE__
#include <ruby.h>
#include <st.h>
#else
#include <ruby.h>
#include <st.h>
#endif
#include <ruby.h>
#include <st.h>

#ifndef MAXOPTS
#define MAXOPTS 100
Expand Down

0 comments on commit 6d0ed4b

Please sign in to comment.