[vlc-commits] Fix compilation on Linux with recent headers

Jean-Baptiste Kempf git at videolan.org
Tue Nov 8 01:28:45 CET 2011


npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov  8 01:28:23 2011 +0100| [b224099edfe91154d6cf093a7c06ac006afd9d17] | committer: Jean-Baptiste Kempf

Fix compilation on Linux with recent headers

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=b224099edfe91154d6cf093a7c06ac006afd9d17
---

 npapi/support/npunix.cpp |    2 +-
 npapi/vlcshell.cpp       |    2 +-
 npapi/vlcshell.h         |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/npapi/support/npunix.cpp b/npapi/support/npunix.cpp
index 31515f9..0f824fa 100644
--- a/npapi/support/npunix.cpp
+++ b/npapi/support/npunix.cpp
@@ -767,7 +767,7 @@ Private_GetJavaClass(void)
  *  - Netscape uses the return value to identify when an object instance
  *    of this plugin should be created.
  */
-char *
+const char *
 NP_GetMIMEDescription(void)
 {
     return NPP_GetMIMEDescription();
diff --git a/npapi/vlcshell.cpp b/npapi/vlcshell.cpp
index 5265ac4..41cbb5d 100644
--- a/npapi/vlcshell.cpp
+++ b/npapi/vlcshell.cpp
@@ -66,7 +66,7 @@ static LRESULT CALLBACK Manage( HWND p_hwnd, UINT i_msg, WPARAM wpar, LPARAM lpa
 /******************************************************************************
  * UNIX-only API calls
  *****************************************************************************/
-char * NPP_GetMIMEDescription( void )
+const char * NPP_GetMIMEDescription( void )
 {
     return mimetype;
 }
diff --git a/npapi/vlcshell.h b/npapi/vlcshell.h
index 84eb28e..07bf4a9 100644
--- a/npapi/vlcshell.h
+++ b/npapi/vlcshell.h
@@ -24,7 +24,7 @@
 #ifndef __VLCSHELL_H__
 #define __VLCSHELL_H__
 
-char * NPP_GetMIMEDescription( void );
+const char * NPP_GetMIMEDescription( void );
 
 NPError NPP_Initialize( void );
 



More information about the vlc-commits mailing list