From 0a2abc6933c38362f0d0b1293fa1bca2b2894971 Mon Sep 17 00:00:00 2001 From: groogy Date: Sat, 26 Feb 2011 01:09:31 +0000 Subject: [PATCH] sfml/all couldn't be loaded since it's symbol was not C style but got name mangled by C++. Fixed now :) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1801 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-all/all/main.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bindings/ruby/sfml-all/all/main.cpp b/bindings/ruby/sfml-all/all/main.cpp index 090ccdfd6..dcdc40521 100644 --- a/bindings/ruby/sfml-all/all/main.cpp +++ b/bindings/ruby/sfml-all/all/main.cpp @@ -1,9 +1,12 @@ #include "ruby.h" -void Init_all( void ) +extern "C" { - rb_require( "sfml/system" ); - rb_require( "sfml/window" ); - rb_require( "sfml/graphics" ); - rb_require( "sfml/audio" ); -} + void Init_all( void ) + { + rb_require( "sfml/system" ); + rb_require( "sfml/window" ); + rb_require( "sfml/graphics" ); + rb_require( "sfml/audio" ); + } +} \ No newline at end of file