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 <jb@videolan.org>
#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>