diff options
-rw-r--r-- | src/suil_internal.h | 1 | ||||
-rw-r--r-- | src/win_in_gtk2.cpp (renamed from src/win_in_gtk2.c) | 4 | ||||
-rw-r--r-- | wscript | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/suil_internal.h b/src/suil_internal.h index b72c545..62a5ace 100644 --- a/src/suil_internal.h +++ b/src/suil_internal.h @@ -94,6 +94,7 @@ typedef SuilWrapper* (*SuilWrapperNewFunc)(SuilHost* host, unsigned n_features); /** Prototype for suil_wrapper_new in each module. */ +SUIL_API SuilWrapper* suil_wrapper_new(SuilHost* host, const char* host_type_uri, diff --git a/src/win_in_gtk2.c b/src/win_in_gtk2.cpp index 159639a..3e0d12c 100644 --- a/src/win_in_gtk2.c +++ b/src/win_in_gtk2.cpp @@ -21,6 +21,8 @@ #include "./suil_internal.h" +extern "C" { + #define SUIL_TYPE_WIN_WRAPPER (suil_win_wrapper_get_type()) #define SUIL_WIN_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SUIL_TYPE_WIN_WRAPPER, SuilWinWrapper)) @@ -159,3 +161,5 @@ suil_wrapper_new(SuilHost* host, return wrapper; } + +} // extern "C" @@ -184,7 +184,7 @@ def build(bld): if bld.is_defined('HAVE_GTK2') and sys.platform == 'win32': obj = bld(features = 'cxx cxxshlib', - source = 'src/win_in_gtk2.c', + source = 'src/win_in_gtk2.cpp', target = 'suil_win_in_gtk2', includes = ['.'], defines = ['SUIL_SHARED', 'SUIL_INTERNAL'], |