diff --git a/Lib/guile/swigrun.i b/Lib/guile/swigrun.i index eec8a2bb4..4b9ea2c79 100644 --- a/Lib/guile/swigrun.i +++ b/Lib/guile/swigrun.i @@ -4,6 +4,19 @@ #ifdef SWIGGUILE_SCM +/* Hook the runtime module initialization + into the shared initialization function SWIG_Guile_Init. */ +%runtime %{ +/* Hook the runtime module initialization + into the shared initialization function SWIG_Guile_Init. */ +#include +#ifdef __cplusplus +extern "C" +#endif +SCM scm_init_Swig_swigrun_module (void); +#define SWIG_INIT_RUNTIME_MODULE scm_init_Swig_swigrun_module(); +%} + /* The runtime type system from common.swg */ typedef struct swig_type_info swig_type_info;