[waffle] [PATCH 7/8] waffle: define WAFFLE_API for Windows platforms

Emil Velikov emil.l.velikov at gmail.com
Sat May 24 15:51:34 PDT 2014


Allows us to properly annotate the functions and
export only the required ones.

Signed-off-by: Emil Velikov <emil.l.velikov at 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



More information about the waffle mailing list