diff options
Diffstat (limited to 'SpiceXPI/src/plugin/plugin.cpp')
-rw-r--r-- | SpiceXPI/src/plugin/plugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp index 2dada12..816ac63 100644 --- a/SpiceXPI/src/plugin/plugin.cpp +++ b/SpiceXPI/src/plugin/plugin.cpp @@ -106,10 +106,17 @@ namespace { } } +#ifdef NPAPI_USE_CONSTCHARS const char *NPP_GetMIMEDescription(void) { return const_cast<char *>(MIME_TYPES_DESCRIPTION.c_str()); } +#else +char *NPP_GetMIMEDescription(void) +{ + return strdup(MIME_TYPES_DESCRIPTION.c_str()); +} +#endif ////////////////////////////////////// // |