Skip to content

Commit

Permalink
Use RUBY_VERSION constant instead of VERSION, which is obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Feb 8, 2004
1 parent 14253e2 commit 608e46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/RMagick/extconf.rb.in
Expand Up @@ -4,7 +4,7 @@
require 'mkmf'

# Pass along Ruby's version number
VERSION_NUMBER = '0x'+VERSION.tr('.','')
VERSION_NUMBER = '0x'+RUBY_VERSION.tr('.','')

$CFLAGS = "-std=c99 -Wall #{`@MAGICKCONFIG@ --cflags`}".chomp;
$CPPFLAGS = "-DRUBY_VERSION=#{VERSION_NUMBER} #{`@MAGICKCONFIG@ --cppflags`}".chomp
Expand Down

0 comments on commit 608e46a

Please sign in to comment.