From 03421107d3c6e6628facd4fdc25940a5d9a77d72 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sun, 10 May 2020 13:07:17 +0200 Subject: [PATCH] vector2d --- src/vector2d.cpp | 16 ++++++++-------- src/vector2d.h | 8 ++------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/vector2d.cpp b/src/vector2d.cpp index 9e46868..4e08818 100644 --- a/src/vector2d.cpp +++ b/src/vector2d.cpp @@ -23,14 +23,14 @@ #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))); } diff --git a/src/vector2d.h b/src/vector2d.h index abf3461..83d6f8b 100644 --- a/src/vector2d.h +++ b/src/vector2d.h @@ -25,11 +25,7 @@ #include #include -extern "C" { - - irr::core::vector2df - scm_to_vector2df (SCM vector2d); - -} +irr::core::vector2df +scm_to_vector2df (SCM vector2d); #endif -- 2.39.5