Mozilla SDK libxul 1.9.1 - preliminary support

According to https://bugzilla.mozilla.org/show_bug.cgi?id=455458
npupp.h has been renamed to npfunctions.h with libxul 1.9.1

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
This commit is contained in:
Nicolas Chauvet (kwizart 2009-01-13 19:32:36 +01:00 committed by Christophe Mutricy
parent e4a5bfc074
commit ba41cc1ad7
4 changed files with 17 additions and 0 deletions

View File

@ -5563,6 +5563,7 @@ then
AS_IF( [test $found = 1],[
CPPFLAGS="${CPPFLAGS_save} ${MOZILLA_CFLAGS}"
MOZILLA_REQUIRED_HEADERS=1
AC_CHECK_HEADERS([npfunctions.h])
AC_CHECK_HEADERS(npapi.h,,MOZILLA_REQUIRED_HEADERS=0)
AC_CHECK_HEADERS(npruntime.h,,MOZILLA_REQUIRED_HEADERS=0,
[#if HAVE_NPAPI_H

View File

@ -4,6 +4,8 @@
//
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#include "config.h"
#include <string.h>
#include <Processes.h>
@ -54,7 +56,11 @@
#undef XP_UNIX
#endif
#ifdef HAVE_NPFUNCTIONS_H
#include "npfunctions.h"
#else
#include "npupp.h"
#endif
#ifdef __MWERKS__
#ifndef powerc

View File

@ -38,12 +38,18 @@
*----------------------------------------------------------------------
*/
#include "config.h"
#define XP_UNIX 1
#define OJI 1
#include <stdio.h>
#include <npapi.h>
#ifdef HAVE_NPFUNCTIONS_H
#include <npfunctions.h>
#else
#include <npupp.h>
#endif
/*
* Define PLUGIN_TRACE to have the wrapper functions print

View File

@ -42,7 +42,11 @@
#endif
#include "npapi.h"
#ifdef HAVE_NPFUNCTIONS_H
#include "npfunctions.h"
#else
#include "npupp.h"
#endif
//\\// DEFINE
#define NP_EXPORT