[libbluray-devel] Fixed linking with c++

Ian Curtis git at videolan.org
Sun Feb 3 00:06:56 CET 2013


libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Sun Feb  3 00:30:03 2013 +0200| [39f718d70ee56f21319dd77418d5c2c42a92ebf3] | committer: hpi1

Fixed linking with c++

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

 src/libbluray/bdj/native/java_awt_BDFontMetrics.c |    2 +-
 src/libbluray/bdj/native/java_awt_BDGraphics.c    |    3 ++-
 src/libbluray/bdj/native/org_videolan_Libbluray.c |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bdj/native/java_awt_BDFontMetrics.c b/src/libbluray/bdj/native/java_awt_BDFontMetrics.c
index a114241..783df01 100644
--- a/src/libbluray/bdj/native/java_awt_BDFontMetrics.c
+++ b/src/libbluray/bdj/native/java_awt_BDFontMetrics.c
@@ -224,6 +224,6 @@ Java_java_awt_BDFontMetrics_methods[] =
     },
 };
 
-BD_PRIVATE const int
+BD_PRIVATE extern const int
 Java_java_awt_BDFontMetrics_methods_count =
     sizeof(Java_java_awt_BDFontMetrics_methods)/sizeof(Java_java_awt_BDFontMetrics_methods[0]);
diff --git a/src/libbluray/bdj/native/java_awt_BDGraphics.c b/src/libbluray/bdj/native/java_awt_BDGraphics.c
index b4acf41..b793dd0 100644
--- a/src/libbluray/bdj/native/java_awt_BDGraphics.c
+++ b/src/libbluray/bdj/native/java_awt_BDGraphics.c
@@ -98,5 +98,6 @@ Java_java_awt_BDGraphics_methods[] =
     },
 };
 
-BD_PRIVATE const int Java_java_awt_BDGraphics_methods_count =
+BD_PRIVATE extern const int
+Java_java_awt_BDGraphics_methods_count =
      sizeof(Java_java_awt_BDGraphics_methods)/sizeof(Java_java_awt_BDGraphics_methods[0]);
diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.c b/src/libbluray/bdj/native/org_videolan_Libbluray.c
index 6670130..e4fbc9e 100644
--- a/src/libbluray/bdj/native/org_videolan_Libbluray.c
+++ b/src/libbluray/bdj/native/org_videolan_Libbluray.c
@@ -549,7 +549,7 @@ Java_org_videolan_Libbluray_methods[] =
     },
 };
 
-BD_PRIVATE const int
+BD_PRIVATE extern const int
 Java_org_videolan_Libbluray_methods_count =
     sizeof(Java_org_videolan_Libbluray_methods)/sizeof(Java_org_videolan_Libbluray_methods[0]);
 



More information about the libbluray-devel mailing list