[libbluray-devel] Fixed function pointer typedefs with c++ compiler

hpi1 git at videolan.org
Wed Sep 12 22:03:46 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Sep 12 22:56:52 2012 +0300| [bdda82ca6af500c0eb048d5c3de4541688929a3b] | committer: hpi1

Fixed function pointer typedefs with c++ compiler

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

 src/libbluray/bluray.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index c53f620..556ffb9 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -60,9 +60,15 @@
 #include <sys/mount.h>
 #endif
 
+#ifdef __cplusplus
+typedef int     (*fptr_int)(...);
+typedef int32_t (*fptr_int32)(...);
+typedef void*   (*fptr_p_void)(...);
+#else
 typedef int     (*fptr_int)();
 typedef int32_t (*fptr_int32)();
 typedef void*   (*fptr_p_void)();
+#endif
 
 #define MAX_EVENTS 31  /* 2^n - 1 */
 typedef struct bd_event_queue_s {



More information about the libbluray-devel mailing list