eio: Add weak symbol

The symbols will be needed when we change how Eolian generates
import/export symbols in Eio
This commit is contained in:
Felipe Magno de Almeida 2020-09-01 22:58:10 -03:00
parent bd8f490228
commit 1ffabc6391
1 changed files with 4 additions and 0 deletions

View File

@ -46,15 +46,19 @@
# else
# define EAPI __declspec(dllimport)
# endif
# define EAPI_WEAK
#else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# define EAPI_WEAK __attribute__ ((weak))
# else
# define EAPI
# define EAPI_WEAK
# endif
# else
# define EAPI
# define EAPI_WEAK
# endif
#endif