summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 04:07:41 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 04:07:41 +0000
commit18e198aba98f11f62f1cc4b5cf6494d686b25a90 (patch)
tree5388eb922cd02385f06eb662c65029529dd4aa2f /src
parent020e59f28530ee2ee72f3567981fa7bff7b8e89b (diff)
downloadsuil-18e198aba98f11f62f1cc4b5cf6494d686b25a90.tar.gz
suil-18e198aba98f11f62f1cc4b5cf6494d686b25a90.tar.bz2
suil-18e198aba98f11f62f1cc4b5cf6494d686b25a90.zip
Fix Windows build.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4638 a436a847-0d15-0410-975c-d299462d15a1
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"