[vlc-commits] Use the same macro on NPWin
Jean-Baptiste Kempf
git at videolan.org
Thu Apr 24 12:20:21 CEST 2014
npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 24 12:18:54 2014 +0200| [9433274946fe4dbbaee5133a2199d33e05445201] | committer: Jean-Baptiste Kempf
Use the same macro on NPWin
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9433274946fe4dbbaee5133a2199d33e05445201
---
npapi/support/npunix.cpp | 2 --
npapi/support/npwin.cpp | 7 +++++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/npapi/support/npunix.cpp b/npapi/support/npunix.cpp
index 8641acc..8952536 100644
--- a/npapi/support/npunix.cpp
+++ b/npapi/support/npunix.cpp
@@ -50,9 +50,7 @@
#endif
/***********************************************************************
- *
* Globals
- *
***********************************************************************/
#pragma mark -
#pragma mark Globals
diff --git a/npapi/support/npwin.cpp b/npapi/support/npwin.cpp
index 4c4a684..a2414a6 100644
--- a/npapi/support/npwin.cpp
+++ b/npapi/support/npwin.cpp
@@ -42,8 +42,11 @@
//\\// DEFINE
#define NP_EXPORT
-//\\// GLOBAL DATA
-static NPNetscapeFuncs* gNetscapeFuncs;
+/***********************************************************************
+ * Globals
+ ***********************************************************************/
+static NPNetscapeFuncs *gNetscapeFuncs; /* Netscape Function table */
+static inline int getMinorVersion() { return gNetscapeFuncs->version & 0xFF; }
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
////\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//.
More information about the vlc-commits
mailing list