[vlc-commits] Fix NP_GetMIMEDescription const check
Cheng Sun
git at videolan.org
Mon Dec 31 00:24:03 CET 2012
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Sun Dec 30 20:51:53 2012 +0000| [3004d4343405c1ef01f578a1df5b81ed2bd31023] | committer: Rafaël Carré
Fix NP_GetMIMEDescription const check
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=3004d4343405c1ef01f578a1df5b81ed2bd31023
---
configure.ac | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3ba5548..10c5295 100644
--- a/configure.ac
+++ b/configure.ac
@@ -209,7 +209,7 @@ AM_CONDITIONAL(FETCH_NPAPI, [ test "${have_headers}" != "true" ])
dnl
dnl check the const-ness of GetMIMEDesc, since it changed in latest npapi headers
-AC_MSG_CHECKING([if NPP_GetMIMEDescription() returns const])
+AC_MSG_CHECKING([if NP_GetMIMEDescription() returns const])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#ifdef WIN32
# define XP_WIN 1
@@ -221,13 +221,14 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#endif
#include <stdint.h>
#include <npapi.h>
- char *NPP_GetMIMEDescription(void);
+ #include <npfunctions.h>
+ char *NP_GetMIMEDescription(void);
])],[
AC_MSG_RESULT(no)
- AC_DEFINE(NPP_GET_MIME_CONST, [], [Whether NPP_GetMIMEDescription returns const])
+ AC_DEFINE(NPP_GET_MIME_CONST, [], [Whether NP_GetMIMEDescription returns const])
],[
AC_MSG_RESULT(yes)
- AC_DEFINE(NPP_GET_MIME_CONST, [const], [Whether NPP_GetMIMEDescription returns const])
+ AC_DEFINE(NPP_GET_MIME_CONST, [const], [Whether NP_GetMIMEDescription returns const])
])
CPPFLAGS="${CPPFLAGS_save}"
More information about the vlc-commits
mailing list