From: "Iñaki Baz Castillo" Date: 2012-05-28T23:40:37+09:00 Subject: Re: [C exten] extconf.rg and #ifdef 2012/5/28 Quintus : > What is wrong with the generic macros the compiler sets itself? If I > remember correctly, every compiler targeting Windows sets a macro called > _WIN32, and I bet there’s something similar for other systems. There > shouldn’t be a need to manually define this in extconf.rb. That would be, of course, much better than "auto-detecting" in extconf.rb. However there could be other cases in which I need to create a #define based on custom requirements. I will inviestigate about the macro you mean. It seems than in *nix systems, the compiler "should" set __unix__ define: http://en.wikipedia.org/wiki/C_preprocessor Thanks a lot. -- Iñaki Baz Castillo