<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,12 +3,14 @@ require 'mkmf'
 require 'rbconfig'
 dir_config(&quot;ffi_c&quot;)
 
-pkg_config(&quot;libffi&quot;)
-have_ffi_call = have_library(&quot;ffi&quot;, &quot;ffi_call&quot;, [ &quot;ffi.h&quot; ])
-have_prep_closure = have_func(&quot;ffi_prep_closure&quot;)
-libffi_ok = have_ffi_call &amp;&amp; have_prep_closure
-$defs &lt;&lt; &quot;-DHAVE_LIBFFI&quot; if libffi_ok
-$defs &lt;&lt; &quot;-DHAVE_RAW_API&quot; if have_func(&quot;ffi_raw_call&quot;) &amp;&amp; have_func(&quot;ffi_prep_raw_closure&quot;)
+unless Config::CONFIG['host_os'] =~ /mswin32|mingw32/
+  pkg_config(&quot;libffi&quot;)
+  have_ffi_call = have_library(&quot;ffi&quot;, &quot;ffi_call&quot;, [ &quot;ffi.h&quot; ])
+  have_prep_closure = have_func(&quot;ffi_prep_closure&quot;)
+  libffi_ok = have_ffi_call &amp;&amp; have_prep_closure
+  $defs &lt;&lt; &quot;-DHAVE_LIBFFI&quot; if libffi_ok
+  $defs &lt;&lt; &quot;-DHAVE_RAW_API&quot; if have_func(&quot;ffi_raw_call&quot;) &amp;&amp; have_func(&quot;ffi_prep_raw_closure&quot;)
+end
 have_func('rb_thread_blocking_region')
 
 $defs &lt;&lt; &quot;-DHAVE_EXTCONF_H&quot; if $defs.empty? # needed so create_header works</diff>
      <filename>ext/ffi_c/extconf.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8f797195af87052ef73f43feafb286d206bc9d52</id>
    </parent>
  </parents>
  <author>
    <name>Wayne Meissner</name>
    <email>wmeissner@gmail.com</email>
  </author>
  <url>http://github.com/ffi/ffi/commit/6863063e5818c7b812ba57c8d9a4ab359ae3cb21</url>
  <id>6863063e5818c7b812ba57c8d9a4ab359ae3cb21</id>
  <committed-date>2009-11-05T12:33:20-08:00</committed-date>
  <authored-date>2009-11-05T12:33:20-08:00</authored-date>
  <message>Don't do libffi detection if cross-compiling for win32.</message>
  <tree>20ab65029f85b9c177987b1af7426245ee551862</tree>
  <committer>
    <name>Wayne Meissner</name>
    <email>wmeissner@gmail.com</email>
  </committer>
</commit>
