[vlc-devel] [PATCH 2/4] - Don't hardcode OJI define - deprecated xith libxul 1.9.2

Nicolas Chauvet kwizart at gmail.com
Mon Mar 29 23:45:46 CEST 2010


---
 projects/mozilla/support/npunix.c |    1 -
 projects/mozilla/vlcshell.cpp     |    2 ++
 projects/mozilla/vlcshell.h       |    3 +++
 3 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/projects/mozilla/support/npunix.c b/projects/mozilla/support/npunix.c
index 9596c27..9eb851c 100644
--- a/projects/mozilla/support/npunix.c
+++ b/projects/mozilla/support/npunix.c
@@ -46,7 +46,6 @@
 #include "config.h"
 
 #define XP_UNIX 1
-#define OJI 1
 
 #include <npapi.h>
 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp
index bff669d..5de1ed0 100644
--- a/projects/mozilla/vlcshell.cpp
+++ b/projects/mozilla/vlcshell.cpp
@@ -272,10 +272,12 @@ NPError NPP_Initialize( void )
     return NPERR_NO_ERROR;
 }
 
+#ifdef OJI
 jref NPP_GetJavaClass( void )
 {
     return NULL;
 }
+#endif
 
 void NPP_Shutdown( void )
 {
diff --git a/projects/mozilla/vlcshell.h b/projects/mozilla/vlcshell.h
index 6dd1561..114865a 100644
--- a/projects/mozilla/vlcshell.h
+++ b/projects/mozilla/vlcshell.h
@@ -27,7 +27,10 @@
 char * NPP_GetMIMEDescription( void );
 
 NPError NPP_Initialize( void );
+
+#ifdef OJI 
 jref NPP_GetJavaClass( void );
+#endif
 void NPP_Shutdown( void );
 
 NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
-- 
1.6.6.1




More information about the vlc-devel mailing list