Commit 1fd9a239 authored by David Menestrina's avatar David Menestrina Committed by Rémi Denis-Courmont

Setup XP_WIN, XP_UNIX, XP_MACOSX macros.

These macros were previously defined in mozilla-config.h, but we're
not supposed to include those files according to the mozilla devs.
However, the macros must be defined for npapi.h to define the
necessary platform-specific structures.  This patch sets up the
macros before including npapi.h.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 89071c33
......@@ -30,6 +30,17 @@
#define __VLCPLUGIN_H__
#include <vlc/vlc.h>
// Setup XP_MACOSX, XP_UNIX, XP_WIN
#if defined(_WIN32)
#define XP_WIN 1
#elif defined(__APPLE__)
#define XP_MACOSX 1
#else
#define XP_UNIX 1
#define MOZ_X11 1
#endif
#include <npapi.h>
#include <vector>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment