summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-01-06 15:23:29 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-01-06 15:23:29 +0100
commit7e1f33d9f50dcae3eeed6143c602303ac360ba8d (patch)
treecb8135e8c9433ea7a5871ab84e26650df672d9da /lib
parent1f8acebcca2b491ec56ab623c69f547f2611e000 (diff)
downloadkoffice-7e1f33d9f50dcae3eeed6143c602303ac360ba8d.tar.gz
koffice-7e1f33d9f50dcae3eeed6143c602303ac360ba8d.zip
Fix kross Ruby 1.9.x FTBFS on armel
Diffstat (limited to 'lib')
-rw-r--r--lib/kross/ruby/rubyscript.cpp1
-rw-r--r--lib/kross/ruby/rubyvariant.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/kross/ruby/rubyscript.cpp b/lib/kross/ruby/rubyscript.cpp
index 106164c4..2469706a 100644
--- a/lib/kross/ruby/rubyscript.cpp
+++ b/lib/kross/ruby/rubyscript.cpp
@@ -32,7 +32,6 @@
#include <node.h>
#else // HAVE_RUBY_1_9
#include <ruby/backward/rubysig.h>
-#define STR2CSTR(x) StringValuePtr(x)
#endif // HAVE_RUBY_1_9
#include <main/scriptcontainer.h>
diff --git a/lib/kross/ruby/rubyvariant.h b/lib/kross/ruby/rubyvariant.h
index d0d25759..f36d943c 100644
--- a/lib/kross/ruby/rubyvariant.h
+++ b/lib/kross/ruby/rubyvariant.h
@@ -31,6 +31,7 @@
#include <st.h>
#else // HAVE_RUBY_1_9
#include <ruby/st.h>
+#define STR2CSTR(x) StringValuePtr(x)
#endif // HAVE_RUBY_1_9
//#include <typeinfo>