Replaced all occurrences of the deprecated STR2CSTR() in Ruby code with
the new StringValuePtr(). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
27b798c807
commit
2de683e019
5 changed files with 19 additions and 14 deletions
|
|
@ -38,6 +38,11 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* Ruby 1.8 deprecates STR2CSTR() in favor of StringValuePtr() */
|
||||
#ifndef StringValuePtr
|
||||
#define StringValuePtr(x) STR2CSTR((x))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Need to be very careful about how these macros are defined, especially
|
||||
* when compiling C++ code or C code with an ANSI C compiler.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue