X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fvector2d.cpp;h=52e8dcce4b686e52750b67a598d7f512f0389bf0;hb=7ef67d269cc1f6d9f9c58583c100d761d77801d8;hp=9e46868239fc79d7577fc99c9a20b442e599b6d2;hpb=0e0782653487ad1691d7879ff433bc5ffd7c3791;p=guile-irrlicht.git diff --git a/src/vector2d.cpp b/src/vector2d.cpp index 9e46868..52e8dcc 100644 --- a/src/vector2d.cpp +++ b/src/vector2d.cpp @@ -23,14 +23,12 @@ #include #include "vector2d.h" -extern "C" { - - irr::core::vector2df - scm_to_vector2df (SCM vector2d) - { - return irr::core::vector2df - (scm_to_double (scm_car (vector2d)), - scm_to_double (scm_cadr (vector2d))); - } - +using namespace irr; + +core::vector2df +scm_to_vector2df (SCM vector2d) +{ + return core::vector2df + (scm_to_double (scm_car (vector2d)), + scm_to_double (scm_cadr (vector2d))); }