summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/suil_internal.h1
-rw-r--r--src/win_in_gtk2.cpp (renamed from src/win_in_gtk2.c)4
2 files changed, 5 insertions, 0 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"