[vlc-commits] Fix compilation on Win32
Jean-Baptiste Kempf
git at videolan.org
Tue Dec 18 17:27:01 CET 2012
npapi-vlc | branch: windowless | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec 14 13:14:11 2012 +0100| [3272e0dcf90723e12eb6fc321a3b0806fec20090] | committer: Jean-Baptiste Kempf
Fix compilation on Win32
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=3272e0dcf90723e12eb6fc321a3b0806fec20090
---
npapi/events.cpp | 1 -
npapi/vlcplugin.h | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/npapi/events.cpp b/npapi/events.cpp
index 165b5f1..49cb69c 100644
--- a/npapi/events.cpp
+++ b/npapi/events.cpp
@@ -25,7 +25,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-
#include "vlcplugin.h"
#include "events.h"
diff --git a/npapi/vlcplugin.h b/npapi/vlcplugin.h
index 4de32d9..70c9878 100644
--- a/npapi/vlcplugin.h
+++ b/npapi/vlcplugin.h
@@ -58,11 +58,13 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+// Include stdint before NP*.h
+#include <stdint.h>
+
// We use <npfunctions.h> insted of including <npapi.h>
// To avoid using Microsoft SDK (rather then from Mozilla SDK),
#include <npfunctions.h>
-#include <stdint.h>
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
typedef uint16 NPuint16_t;
typedef int16 NPint16_t;
More information about the vlc-commits
mailing list