Issue #4214 has been updated by Luis Lavena.


Nobu, something like this could work for you?


diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index 3dcd914..03b0ac2 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -18,7 +18,6 @@ unless have_library('ffi') || have_library('libffi')
 end
 
 have_header 'sys/mman.h'
-have_header 'windows.h'
 
 create_makefile 'fiddle'
 
diff --git a/ext/fiddle/fiddle.c b/ext/fiddle/fiddle.c
index 78e21c5..2580ac0 100644
--- a/ext/fiddle/fiddle.c
+++ b/ext/fiddle/fiddle.c
@@ -18,7 +18,7 @@ void Init_fiddle()
     rb_define_const(mFiddle, "TYPE_FLOAT",     INT2NUM(TYPE_FLOAT));
     rb_define_const(mFiddle, "TYPE_DOUBLE",    INT2NUM(TYPE_DOUBLE));
 
-#if defined(HAVE_WINDOWS_H)
+#if defined(_WIN32)
     rb_define_const(mFiddle, "WINDOWS", Qtrue);
 #else
     rb_define_const(mFiddle, "WINDOWS", Qfalse);

===

There is no windows.h check and we rely on _WIN32 that is defined either if you're on 32 or 64 bits.
(above patch is against trunk codebase)

Cheers.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/4214

----------------------------------------
http://redmine.ruby-lang.org