Rakefile in jpeg-0.3.1 vs Rakefile in jpeg-0.3.2

- old
+ new

@@ -45,5 +45,13 @@ rdoc.rdoc_dir = 'rdoc' rdoc.title = "jpeg #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end + +if RUBY_PLATFORM =~ /java/ + require 'rake/javaextensiontask' + Rake::JavaExtensionTask.new('jpeg') +else + require 'rake/extensiontask' + Rake::ExtensionTask.new('jpeg') +end