From: "U.Nakamura" Date: 2007-12-29T22:45:11+09:00 Subject: Re: Layout of includes in ruby 1.9 Hello, In message "Re: Layout of includes in ruby 1.9" on Dec.29,2007 22:34:33, wrote: | > Also, since several API calls have dramatically changed, how do you | > detect the ruby.h belongs to 1.9? I am missing some kind of | > RUBY_API_VERSION define somewhere, so that any extension or embedding | > can be compatible with both rubys. | | You need to include version.h No, it's bad manner. With 1.9, version.h is never installed. If you are creating an extension library, use have_func or have_macro to checking ruby APIs on extconf.rb. Regards, -- U.Nakamura