summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-02-21 16:56:10 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-02-21 17:22:02 +0100
commite6d0daefbdb8367384d8e5c217f65118bd8dc565 (patch)
tree919989cf378cbf13adf092763346bb8f59d993bc /extensions/source
parent46fd2a3bf2a53c64c040590afe450505fcb13c10 (diff)
build also with older npapi
They were apparently lame enough to make a source-incompatible change without changing API version or anything similar.
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index 6d6122834ad2..83f2371602e8 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -361,7 +361,10 @@ MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII ":odp:OpenDocument Presentation;"
MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE_ASCII ":otp:OpenDocument Presentation Template;"
MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII ":odf:OpenDocument Formula;" );
-const char*
+#ifndef HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
+const
+#endif
+char*
NPP_GetMIMEDescription(void)
{
debug_fprintf(NSP_LOG_APPEND, "print by Netscape Plugin, NPP_GetMIMEDescription:%s.\n", pMimeTypes);