[libbluray-devel] Missing extern "C" in refcnt.h

tourettes git at videolan.org
Thu Aug 6 14:16:27 CEST 2015


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Sun Aug  2 15:13:21 2015 +0300| [38c7e68c6cfd55de86a3aa805f2b9a8c1378ef63] | committer: hpi1

Missing extern "C" in refcnt.h

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=38c7e68c6cfd55de86a3aa805f2b9a8c1378ef63
---

 src/util/refcnt.h |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/util/refcnt.h b/src/util/refcnt.h
index b839eba..9164921 100644
--- a/src/util/refcnt.h
+++ b/src/util/refcnt.h
@@ -20,6 +20,10 @@
 #ifndef BD_REFCNT_H_
 #define BD_REFCNT_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "attributes.h"
 
 #include <stddef.h>
@@ -53,4 +57,8 @@ void bd_refcnt_inc(const void *obj);
 void bd_refcnt_dec(const void *obj);
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // BD_REFCNT_H_



More information about the libbluray-devel mailing list