Allows us to properly annotate the functions and export only the required ones.
Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com> --- src/waffle/api/api_priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/waffle/api/api_priv.h b/src/waffle/api/api_priv.h index 0bbeada..1fec575 100644 --- a/src/waffle/api/api_priv.h +++ b/src/waffle/api/api_priv.h @@ -38,7 +38,9 @@ // // TODO: Implement WAFFLE_API for Apple. // -#if defined(__GNUC__) && __GNUC__ >= 4 +#if defined(_WIN32) +# define WAFFLE_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 # define WAFFLE_API __attribute__ ((visibility("default"))) #else # define WAFFLE_API -- 1.9.3 _______________________________________________ waffle mailing list waffle@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/waffle