ext/native/extconf.rb in serialport-1.0.4 vs ext/native/extconf.rb in serialport-1.1.0
- old
+ new
@@ -1,14 +1,13 @@
-require 'mkmf'
-
-printf("checking for OS... ")
-STDOUT.flush
-os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
-puts(os)
-$CFLAGS += " -DOS_#{os.upcase}"
-$CFLAGS += " -DRUBY_1_9" if RUBY_VERSION =~ /^1\.9/
-
-if !(os == 'mswin' or os == 'bccwin' or os == 'mingw')
- exit(1) if not have_header("termios.h") or not have_header("unistd.h")
-end
-
-create_makefile('serialport')
+require 'mkmf'
+
+printf("checking for OS... ")
+STDOUT.flush
+os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
+puts(os)
+$CFLAGS += " -DOS_#{os.upcase}"
+
+if !(os == 'mswin' or os == 'bccwin' or os == 'mingw')
+ exit(1) if not have_header("termios.h") or not have_header("unistd.h")
+end
+
+create_makefile('serialport')