]> git.sesse.net Git - vlc/commitdiff
mozilla - Avoid usage of HAVE_NPFUNCTIONS_H
authorNicolas Chauvet <kwizart@gmail.com>
Mon, 29 Mar 2010 21:45:45 +0000 (23:45 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 30 Mar 2010 07:38:31 +0000 (10:38 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
configure.ac
projects/mozilla/support/npmac.cpp
projects/mozilla/support/npunix.c
projects/mozilla/support/npwin.cpp

index 7021c5d8dce346b5da4b55e4af6ab7d1ead1e9aa..486a55d615102d97dd027b1a12fddd991d00b7ac 100644 (file)
@@ -4574,7 +4574,6 @@ 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
index fc5b4bee7581ffb4c28af9097c1ca55d1190f9e7..72747b6dc3f101a184637d7b34b92734fffada7f 100644 (file)
 #undef XP_UNIX
 #endif
 
-#ifdef HAVE_NPFUNCTIONS_H
-#include "npfunctions.h"
+#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
+#include "npupp.h" 
 #else
-#include "npupp.h"
+#include "npfunctions.h"
 #endif
 
 #include "../vlcshell.h"
index 52096bc908f948d826e7e740b2e6929fac62c364..9596c27c17b251a3be0f41f2490eff0d8fd2c96e 100644 (file)
 #define OJI 1
 
 #include <npapi.h>
-#ifdef HAVE_NPFUNCTIONS_H
-#include <npfunctions.h>
+#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
+#include "npupp.h" 
 #else
-#include <npupp.h>
+#include "npfunctions.h"
 #endif
 
 #include "../vlcshell.h"
index 463c7606cd83c35b53e8d6d3834ce5e25c3ee0d7..4674194a01f15b905f87f72a4a7f2cc4434fa6b6 100644 (file)
 #ifndef _NPAPI_H_
 #   include "npapi.h"
 #endif
-#ifdef HAVE_NPFUNCTIONS_H
-#   include "npfunctions.h"
+#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
+#include "npupp.h" 
 #else
-#   ifndef _NPUPP_H_
-#      include "npupp.h"
-#   endif
+#include "npfunctions.h"
 #endif
 
 #include "../vlcshell.h"