[goocanvas/prep-msvc-3.0: 2/3] src/goocanvasatk.c: Add prototypes for MSVC builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas/prep-msvc-3.0: 2/3] src/goocanvasatk.c: Add prototypes for MSVC builds
- Date: Sat, 12 Jun 2021 07:17:22 +0000 (UTC)
commit 74aa599c8b886c057d13ffe06f177451792c36f0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Sat Jun 12 12:16:53 2021 +0800
src/goocanvasatk.c: Add prototypes for MSVC builds
This way, the compiler can pick up the __declspec(dllexport) directives during
the build on Visual Studio. The symbols here are needed for building the
introspection files.
src/goocanvasatk.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/goocanvasatk.c b/src/goocanvasatk.c
index 565f1bc..fba0d1c 100644
--- a/src/goocanvasatk.c
+++ b/src/goocanvasatk.c
@@ -12,6 +12,15 @@
#include <gtk/gtk.h>
#include "goocanvas.h"
+#ifdef _MSC_VER
+GOOCANVAS_API extern
+GType goo_canvas_accessible_factory_get_type (void) G_GNUC_CONST;
+GOOCANVAS_API extern
+GType goo_canvas_item_accessible_factory_get_type (void) G_GNUC_CONST;
+GOOCANVAS_API extern
+GType goo_canvas_widget_accessible_factory_get_type (void) G_GNUC_CONST;
+#endif
+
/*
* GooCanvasItemAccessible.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]