[libbluray-devel] C++ compatibility

Ferdinand Holzer holzer at grg21.ac.at
Sun Feb 20 01:28:30 CET 2011


diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index 2d58a4c..f574175 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -27,6 +27,11 @@
   * external API header
   */

+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
  #include <stdint.h>

  #define TITLES_ALL              0    /**< all titles. */
@@ -609,4 +614,8 @@ struct meta_dl;
   */
  struct meta_dl *bd_get_meta(BLURAY *bd);

+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
  #endif /* BLURAY_H_ */


More information about the libbluray-devel mailing list