svn commit: r397464 - in head/lang: ruby20/files ruby21/files
Michael Moll
mmoll at FreeBSD.org
Sun Sep 20 21:30:41 UTC 2015
Author: mmoll
Date: Sun Sep 20 21:30:40 2015
New Revision: 397464
URL: https://svnweb.freebsd.org/changeset/ports/397464
Log:
fix Ruby 2.0 and 2.1 header for clang 3.7
2.2 already had this change in upstream
PR: 202660
Submitted by: dim (different version)
Obtained from: Ruby SVN repository (r47996)
Added:
head/lang/ruby20/files/patch-include_ruby_ruby.h (contents, props changed)
head/lang/ruby21/files/patch-include_ruby_ruby.h (contents, props changed)
Added: head/lang/ruby20/files/patch-include_ruby_ruby.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/ruby20/files/patch-include_ruby_ruby.h Sun Sep 20 21:30:40 2015 (r397464)
@@ -0,0 +1,11 @@
+--- include/ruby/ruby.h.orig 2015-09-20 20:42:37 UTC
++++ include/ruby/ruby.h
+@@ -238,7 +238,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
+ #define FIXNUM_MAX (LONG_MAX>>1)
+ #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
+
+-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
+ #define LONG2FIX(i) INT2FIX(i)
+ #define rb_fix_new(v) INT2FIX(v)
+ VALUE rb_int2inum(SIGNED_VALUE);
Added: head/lang/ruby21/files/patch-include_ruby_ruby.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/ruby21/files/patch-include_ruby_ruby.h Sun Sep 20 21:30:40 2015 (r397464)
@@ -0,0 +1,11 @@
+--- include/ruby/ruby.h.orig 2015-09-20 20:49:26 UTC
++++ include/ruby/ruby.h
+@@ -228,7 +228,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
+ #define FIXNUM_MAX (LONG_MAX>>1)
+ #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
+
+-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
+ #define LONG2FIX(i) INT2FIX(i)
+ #define rb_fix_new(v) INT2FIX(v)
+ VALUE rb_int2inum(SIGNED_VALUE);
More information about the svn-ports-head
mailing list