Bug #4214 » 0001-fix-fiddle-windows-constant.patch
| configure.in | ||
|---|---|---|
| 
     		 sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \ 
   | 
||
| 
     		 ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \ 
   | 
||
| 
     		 net/socket.h sys/socket.h) 
   | 
||
| 
     AC_CHECK_HEADERS_ONCE([windows.h]) 
   | 
||
| 
     dnl Check additional types. 
   | 
||
| 
     RUBY_CHECK_SIZEOF(rlim_t, [int long "long long"], [], [ 
   | 
||
| test/fiddle/test_fiddle.rb | ||
|---|---|---|
| 
           assert_equal(DL.const_get(name), Fiddle.const_get(name)) 
   | 
||
| 
         end 
   | 
||
| 
       end 
   | 
||
| 
       def test_windows_constant 
   | 
||
| 
         require 'rbconfig' 
   | 
||
| 
         if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ 
   | 
||
| 
           assert Fiddle::WINDOWS, "Fiddle::WINDOWS should be 'true' on Windows platforms" 
   | 
||
| 
         else 
   | 
||
| 
           refute Fiddle::WINDOWS, "Fiddle::WINDOWS should be 'false' on non-Windows platforms" 
   | 
||
| 
         end 
   | 
||
| 
       end 
   | 
||
| 
     end 
   | 
||
| win32/Makefile.sub | ||
|---|---|---|
| 
     !endif 
   | 
||
| 
     #define RT_VER $(RT_VER) 
   | 
||
| 
     #define STDC_HEADERS 1 
   | 
||
| 
     #define HAVE_WINDOWS_H 1 
   | 
||
| 
     #define HAVE_SYS_TYPES_H 1 
   | 
||
| 
     #define HAVE_SYS_STAT_H 1 
   | 
||
| 
     #define HAVE_STDLIB_H 1 
   | 
||