Changeset 706

Show
Ignore:
Timestamp:
06/20/08 12:20:30 (3 months ago)
Author:
raggi
Message:

Moved the thread_blocking_region check to global for 1.9 support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/raggi/ext/extconf.rb

    r695 r706  
    3030 
    3131flags = ['-D BUILD_FOR_RUBY'] 
     32if have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h') 
     33  flags << "-DHAVE_TBR" 
     34end 
    3235 
    3336# Minor platform details between *nix and Windows: 
     
    100103  end 
    101104 
    102   if have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h') 
    103           flags << "-DHAVE_TBR" 
    104   end 
    105  
    106105  # on Unix we need a g++ link, not gcc. 
    107106  CONFIG['LDSHARED'] = "$(CXX) -shared"