From: Javier Sancho Date: Thu, 7 May 2020 11:19:24 +0000 (+0200) Subject: dimension2d X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=e475a79b29e679e6378f871f236ba44ec6a4ae12;p=guile-irrlicht.git dimension2d --- diff --git a/src/dimension2d.cpp b/src/dimension2d.cpp index cad023c..03d4fa6 100644 --- a/src/dimension2d.cpp +++ b/src/dimension2d.cpp @@ -23,14 +23,14 @@ #include #include "dimension2d.h" -extern "C" { - irr::core::dimension2d - scm_to_dimension2d_u32 (SCM dimension2d) - { - return irr::core::dimension2d - (scm_to_uint32 (scm_car (dimension2d)), - scm_to_uint32 (scm_cadr (dimension2d))); - } +using namespace irr; + +core::dimension2d +scm_to_dimension2d_u32 (SCM dimension2d) +{ + return core::dimension2d + (scm_to_uint32 (scm_car (dimension2d)), + scm_to_uint32 (scm_cadr (dimension2d))); } diff --git a/src/dimension2d.h b/src/dimension2d.h index 5556e8a..534a905 100644 --- a/src/dimension2d.h +++ b/src/dimension2d.h @@ -25,11 +25,7 @@ #include #include -extern "C" { - - irr::core::dimension2d - scm_to_dimension2d_u32 (SCM dimension2d); - -} +irr::core::dimension2d +scm_to_dimension2d_u32 (SCM dimension2d); #endif