Want more features on Pastebin? Sign Up, it's FREE!
Guest

mozilla.patch

By: a guest on Feb 4th, 2012  |  syntax: C++  |  size: 1.61 KB  |  views: 88  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: vlc/projects/mozilla/vlcshell.cpp
  2. ===================================================================
  3. --- vlc.orig/projects/mozilla/vlcshell.cpp      2011-11-15 14:51:04.298445000 -0500
  4. +++ vlc/projects/mozilla/vlcshell.cpp   2011-11-15 17:52:44.416707114 -0500
  5. @@ -71,7 +71,7 @@
  6.  /******************************************************************************
  7.   * UNIX-only API calls
  8.   *****************************************************************************/
  9. -char * NPP_GetMIMEDescription( void )
  10. +const char * NPP_GetMIMEDescription( void )
  11.  {
  12.      static char mimetype[] = PLUGIN_MIMETYPES;
  13.      return mimetype;
  14. Index: vlc/projects/mozilla/vlcshell.h
  15. ===================================================================
  16. --- vlc.orig/projects/mozilla/vlcshell.h        2011-11-15 14:51:04.298445000 -0500
  17. +++ vlc/projects/mozilla/vlcshell.h     2011-11-15 17:53:08.736706029 -0500
  18. @@ -24,7 +24,7 @@
  19.  #ifndef __VLCSHELL_H__
  20.  #define __VLCSHELL_H__
  21.  
  22. -char * NPP_GetMIMEDescription( void );
  23. +const char * NPP_GetMIMEDescription( void );
  24.  
  25.  NPError NPP_Initialize( void );
  26.  
  27. Index: vlc/projects/mozilla/support/npunix.cpp
  28. ===================================================================
  29. --- vlc.orig/projects/mozilla/support/npunix.cpp        2011-11-15 14:51:04.298445000 -0500
  30. +++ vlc/projects/mozilla/support/npunix.cpp     2011-11-15 18:06:53.972669237 -0500
  31. @@ -767,7 +767,7 @@
  32.   *  - Netscape uses the return value to identify when an object instance
  33.   *    of this plugin should be created.
  34.   */
  35. -char *
  36. +const char *
  37.  NP_GetMIMEDescription(void)
  38.  {
  39.      return NPP_GetMIMEDescription();
clone this paste RAW Paste Data