[libbluray-devel] commit: Added BD_PUBLIC/BD_PRIVATE for Windows (hpi1 )
git at videolan.org
git at videolan.org
Sat Aug 21 08:47:14 CEST 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Aug 21 09:46:20 2010 +0300| [e4ea97db56ed24f26c267b39d1eeb1b95b0de087] | committer: hpi1
Added BD_PUBLIC/BD_PRIVATE for Windows
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e4ea97db56ed24f26c267b39d1eeb1b95b0de087
---
src/util/attributes.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/util/attributes.h b/src/util/attributes.h
index cb07fdc..cbaade6 100644
--- a/src/util/attributes.h
+++ b/src/util/attributes.h
@@ -30,7 +30,15 @@
# define BD_ATTR_PACKED
#endif
-#if defined(__GNUC__) && __GNUC__ >= 4
+#if defined(_WIN32)
+# if defined(__GNUC__)
+# define BD_PUBLIC __attribute__((dllexport))
+# define BD_PRIVATE
+# else
+# define BD_PUBLIC __declspec(dllexport)
+# define BD_PRIVATE
+# endif
+#elif defined(__GNUC__) && __GNUC__ >= 4
# define BD_PUBLIC __attribute__((visibility("default")))
# define BD_PRIVATE __attribute__((visibility("hidden")))
#else
More information about the libbluray-devel
mailing list