From: Jon Forums Date: 2012-05-29T04:34:54+09:00 Subject: Re: extconf.rg and #ifdef From libuv's `include/uv.h` header: #if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__) # include "uv-private/uv-unix.h" #else # include "uv-private/uv-win.h" #endif To help prevent multi-platform lunacy, as I find useful macros I add them to a simple little C helper such as: https://gist.github.com/968522 Also, here's what MSFT publishes as Visual Studio 10's predefined C/C++ macros http://msdn.microsoft.com/en-us/library/b0084kay Jon --- Fail fast. Fail often. Fail publicly. Learn. Adapt. Repeat. http://thecodeshop.github.com | http://jonforums.github.com/ twitter: @jonforums -- Posted via http://www.ruby-forum.com/.