From 54ac2f57ce1046057207327a071db390a4bb21a7 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 22 Apr 2015 14:09:17 -0400 Subject: [PATCH] Work on shared library symbol exporting. --- new/ui.idl | 4 ++++ new/unix/uipriv_unix.h | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 new/unix/uipriv_unix.h diff --git a/new/ui.idl b/new/ui.idl index 7c98b71e..a619600c 100644 --- a/new/ui.idl +++ b/new/ui.idl @@ -13,6 +13,10 @@ raw "#define __UI_UI_H__"; raw "#include "; +raw "#ifndef _UI_EXTERN"; +raw "#define _UI_EXTERN extern"; +raw "#endif"; + // TODO note that should be initialized to zero struct InitOptions { // TODO cbSize diff --git a/new/unix/uipriv_unix.h b/new/unix/uipriv_unix.h new file mode 100644 index 00000000..8ae69be9 --- /dev/null +++ b/new/unix/uipriv_unix.h @@ -0,0 +1,12 @@ +// 22 april 2015 +#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_32 +#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_32 +#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4 +#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4 +#include + +// thanks ebassi in irc.gimp.net/#gtk+ +#define _UI_EXTERN __attribute__((visibility("default"))) extern +#include "../ui.h" +#include "../ui_unix.h" +#include "../uipriv.h"