[goocanvas/prep-msvc-3.0: 1/2] 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: 1/2] src/goocanvasatk.c: Add prototypes for MSVC builds
- Date: Sat, 12 Jun 2021 07:09:52 +0000 (UTC)
commit 365a699e8439b2676634ed51c54110f0e5ab179b
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 +++++++++
src/goocanvasatk.h | 4 ----
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/goocanvasatk.c b/src/goocanvasatk.c
index 565f1bc..fa30eeb 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
+GType goo_canvas_accessible_factory_get_type (void) G_GNUC_CONST;
+GOOCANVAS_API
+GType goo_canvas_item_accessible_factory_get_type (void) G_GNUC_CONST;
+GOOCANVAS_API
+GType goo_canvas_widget_accessible_factory_get_type (void) G_GNUC_CONST;
+#endif
+
/*
* GooCanvasItemAccessible.
diff --git a/src/goocanvasatk.h b/src/goocanvasatk.h
index ee83ebb..bb1eae8 100644
--- a/src/goocanvasatk.h
+++ b/src/goocanvasatk.h
@@ -8,15 +8,11 @@
#define __GOO_CANVAS_ATK_H__
#include <gtk/gtk.h>
-#include "goocanvasexports.h"
G_BEGIN_DECLS
-GOOCANVAS_API
GType goo_canvas_accessible_factory_get_type (void) G_GNUC_CONST;
-GOOCANVAS_API
GType goo_canvas_item_accessible_factory_get_type (void) G_GNUC_CONST;
-GOOCANVAS_API
GType goo_canvas_widget_accessible_factory_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]