hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=31aab8115b57edb2c8e1e6313ac412de9e6afbcc
commit 31aab8115b57edb2c8e1e6313ac412de9e6afbcc Author: Vincent Torri <[email protected]> Date: Sat Oct 23 21:28:06 2021 +0200 build: fix compilation on Windows, and fix EAPI on UNIX --- configure.ac | 2 ++ src/lib/Enventor.h | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index ce66096..882f57f 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,8 @@ AM_INIT_AUTOMAKE(1.6 dist-bzip2 dist-xz) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_HEADERS(config.h) AC_GNU_SOURCE +lt_cv_deplibs_check_method=pass_all +LT_INIT([win32-dll]) AC_PROG_LIBTOOL AM_PROG_CC_C_O ELM_QUICKLAUNCH diff --git a/src/lib/Enventor.h b/src/lib/Enventor.h index 83ef834..5e309e8 100644 --- a/src/lib/Enventor.h +++ b/src/lib/Enventor.h @@ -27,6 +27,16 @@ extern "C" # else # define EAPI __declspec(dllimport) # endif +#else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define EAPI __attribute__ ((visibility("default"))) +# else +# define EAPI +# endif +# else +# define EAPI +# endif #endif /** --
