[amtk/meson-msvc: 7/22] amtk-types.h: Add _AMTK_EXTERN
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [amtk/meson-msvc: 7/22] amtk-types.h: Add _AMTK_EXTERN
- Date: Tue, 14 Jul 2020 06:27:33 +0000 (UTC)
commit 032582ef1e7a2170bec2d75bd4ff959ad8ea95f4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Apr 28 13:10:13 2020 +0800
amtk-types.h: Add _AMTK_EXTERN
We can use _AMTK_EXTERN later to decorate the public APIs in the headers so
that we can override its definition in order to export these symbols via
compiler directives, for compilers that do not support exporting by regex,
etc.
amtk/amtk-types.h | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/amtk/amtk-types.h b/amtk/amtk-types.h
index 4b7951d..5ed5873 100644
--- a/amtk/amtk-types.h
+++ b/amtk/amtk-types.h
@@ -36,6 +36,10 @@ typedef struct _AmtkApplicationWindow AmtkApplicationWindow;
typedef struct _AmtkFactory AmtkFactory;
typedef struct _AmtkMenuShell AmtkMenuShell;
+#ifndef _AMTK_EXTERN
+#define _AMTK_EXTERN extern
+#endif
+
G_END_DECLS
#endif /* AMTK_TYPES_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]