Permalink
Browse files

Merge pull request #25 from phillbaker/universal-darwin10.0

Add support for universal-darwin10.0 via st.h check.
  • Loading branch information...
2 parents e5e7bdf + 430b22f commit 55535ce2f5cadbefa26ccf13acd4aca1323822f2 @alloy alloy 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
2 ext/xcodeproj/extconf.rb
@@ -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'
View
2 ext/xcodeproj/xcodeproj_ext.c
@@ -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 55535ce

Please sign in to comment.