Permalink
Browse files

Add support for universal-darwin10.0 via st.h check.

  • Loading branch information...
1 parent e5e7bdf commit 430b22f30934d0baef8add03d868364f288529cb @phillbaker phillbaker committed Aug 22, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 ext/xcodeproj/extconf.rb
  2. +2 −0 ext/xcodeproj/xcodeproj_ext.c
View
@@ -37,7 +37,7 @@ def have_framework(fw, &b)
have_header 'CoreFoundation/CoreFoundation.h'
have_header 'CoreFoundation/CFStream.h'
have_header 'CoreFoundation/CFPropertyList.h'
-have_header 'ruby/st.h'
+have_header 'ruby/st.h' or have_header 'st.h' or abort 'xcodeproj currently requires the (ruby/)st.h header'
create_header
create_makefile 'xcodeproj_ext'
@@ -6,6 +6,8 @@
#include "ruby.h"
#if HAVE_RUBY_ST_H
#include "ruby/st.h"
+#elif HAVE_ST_H
+#include "st.h"
#endif
#include "CoreFoundation/CoreFoundation.h"

0 comments on commit 430b22f

Please sign in to comment.