aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-05-23 18:51:46 +0100
committerChad Versace <chad.versace@linux.intel.com>2014-05-30 17:57:47 -0700
commitb56263ad146f14438b1ac344d37d17d035788fb5 (patch)
tree2ab227cd2f0822d17088e942f4cb054bf2c375c8 /src
parent84c27573efc33377065db07e136a0d6740e1aedb (diff)
downloadwaffle-b56263ad146f14438b1ac344d37d17d035788fb5.tar.gz
waffle: define WAFFLE_API for Windows platforms
Allows us to properly annotate the functions and export only the required ones. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src')
-rw-r--r--src/waffle/api/api_priv.h4
1 files changed, 3 insertions, 1 deletions
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