hopefully sorted out this header nonsense

This commit is contained in:
Mike Dirolf 2009-08-03 12:06:51 -04:00
parent 3d6942c257
commit cb52b24040
2 changed files with 16 additions and 2 deletions

View File

@ -21,8 +21,21 @@
*/
#include "ruby.h"
#if HAVE_RUBY_ST_H
#include "ruby/st.h"
#endif
#if HAVE_ST_H
#include "st.h"
#endif
#if HAVE_RUBY_REGEX_H
#include "ruby/regex.h"
#endif
#if HAVE_REGEX_H
#include "regex.h"
#endif
#include <assert.h>
#include <math.h>

View File

@ -1,6 +1,7 @@
require 'mkmf'
find_header("st.h")
find_header("regex.h")
have_header("ruby/st.h") || have_header("st.h")
have_header("ruby/regex.h") || have_header("regex.h")
dir_config('cbson')
create_makefile('mongo_ext/cbson')