subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pbu...@apache.org
Subject svn commit: r1480765 - /subversion/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h
Date Thu, 09 May 2013 20:36:32 GMT
Author: pburba
Date: Thu May  9 20:36:32 2013
New Revision: 1480765

URL: http://svn.apache.org/r1480765
Log:
* subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h
  (ruby/io.h): Include the appropriate Ruby header if using Ruby 1.9 and
   thus avoid the 'use "ruby/io.h" instead of "rubyio.h"' warning.


Modified:
    subversion/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h

Modified: subversion/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h?rev=1480765&r1=1480764&r2=1480765&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h (original)
+++ subversion/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.h Thu May
 9 20:36:32 2013
@@ -74,7 +74,12 @@
 extern "C" {
 #endif /* __cplusplus */
 
+/* Ruby 1.9 changed the file name of this header */
+#ifdef HAVE_RUBY_IO_H
+#include <ruby/io.h>
+#else
 #include <rubyio.h>
+#endif
 
 typedef struct apr_pool_wrapper_t
 {



Mime
View raw message