summaryrefslogtreecommitdiff
path: root/extensions
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
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')
-rw-r--r--extensions/Library_npsoplugin.mk6
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx5
2 files changed, 10 insertions, 1 deletions
diff --git a/extensions/Library_npsoplugin.mk b/extensions/Library_npsoplugin.mk
index 94d9d237bb06..3c6854692b23 100644
--- a/extensions/Library_npsoplugin.mk
+++ b/extensions/Library_npsoplugin.mk
@@ -48,6 +48,12 @@ $(eval $(call gb_Library_add_defs,npsoplugin,\
-DMOZ_X11 \
))
+ifeq ($(HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION),TRUE)
+$(eval $(call gb_Library_add_defs,npsoplugin,\
+ -DHAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=1 \
+))
+endif
+
ifeq ($(filter-out LINUX FREEBSD NETBSD OPENBSD DRAGONFLY,$(OS)),)
$(eval $(call gb_Library_add_defs,npsoplugin,\
-DNP_LINUX \
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);