diff --git a/libui_darwin_amd64.a b/libui_darwin_amd64.a index 561fefb..2d4b158 100644 Binary files a/libui_darwin_amd64.a and b/libui_darwin_amd64.a differ diff --git a/libui_linux_386.a b/libui_linux_386.a index 287b2f7..45fcf12 100644 Binary files a/libui_linux_386.a and b/libui_linux_386.a differ diff --git a/libui_linux_amd64.a b/libui_linux_amd64.a index de7008e..10c78c1 100644 Binary files a/libui_linux_amd64.a and b/libui_linux_amd64.a differ diff --git a/libui_windows_386.a b/libui_windows_386.a new file mode 100644 index 0000000..b5311bb Binary files /dev/null and b/libui_windows_386.a differ diff --git a/libui_windows_386.lib b/libui_windows_386.lib deleted file mode 100644 index 1275a44..0000000 Binary files a/libui_windows_386.lib and /dev/null differ diff --git a/libui_windows_386.res b/libui_windows_386.res index 3198d2d..4b03f64 100644 Binary files a/libui_windows_386.res and b/libui_windows_386.res differ diff --git a/libui_windows_amd64.a b/libui_windows_amd64.a new file mode 100644 index 0000000..7e111a1 Binary files /dev/null and b/libui_windows_amd64.a differ diff --git a/libui_windows_amd64.lib b/libui_windows_amd64.lib deleted file mode 100644 index c16cda0..0000000 Binary files a/libui_windows_amd64.lib and /dev/null differ diff --git a/libui_windows_amd64.res.o b/libui_windows_amd64.res.o index 0ba56f5..ddcddbf 100644 Binary files a/libui_windows_amd64.res.o and b/libui_windows_amd64.res.o differ diff --git a/ui.h b/ui.h index 3452791..c7a8858 100644 --- a/ui.h +++ b/ui.h @@ -12,8 +12,15 @@ extern "C" { #endif -// TODO add __declspec(dllimport) on windows -#ifndef _UI_EXTERN +// this macro is generated by cmake +#ifdef libui_EXPORTS +#ifdef _WIN32 +#define _UI_EXTERN __declspec(dllexport) extern +#else +#define _UI_EXTERN __attribute__((visibility("default"))) extern +#endif +#else +// TODO add __declspec(dllimport) on windows, but only if not static #define _UI_EXTERN extern #endif