Permalink
Browse files

Require intern.h from correct location on 1.9.

  • Loading branch information...
1 parent b7f4846 commit 10d453543b72b0fdb775153bc92446ee2fc3a06c @brixen brixen committed Oct 16, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/ruby/optional/capi/ext/struct_spec.c
@@ -1,7 +1,13 @@
#include "ruby.h"
-#include "intern.h"
#include "rubyspec.h"
+#ifdef RUBY_VERSION_IS_1_9
+#include "ruby/intern.h"
+#else
+#include "intern.h"
+#endif
+
+
#ifdef __cplusplus
extern "C" {
#endif

0 comments on commit 10d4535

Please sign in to comment.