[vlc-commits] commit: Setup XP_WIN, XP_UNIX, XP_MACOSX macros. (David Menestrina )

git at videolan.org git at videolan.org
Tue Apr 27 23:56:45 CEST 2010


vlc/vlc-1.1 | branch: master | David Menestrina <dmenest-vlc at ofb dot net> | Mon Apr 19 11:33:36 2010 -0700| [adafc8bbd1251ca8c599e49cbb58192d887fe33c] | committer: Jean-Baptiste Kempf 

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 <jb at videolan.org>
(cherry picked from commit 877bd2105b0bdbc2b8c3fc87855ea737834568b0)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=adafc8bbd1251ca8c599e49cbb58192d887fe33c
---

 projects/mozilla/vlcplugin.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/projects/mozilla/vlcplugin.h b/projects/mozilla/vlcplugin.h
index c13b5e7..4ec3814 100644
--- a/projects/mozilla/vlcplugin.h
+++ b/projects/mozilla/vlcplugin.h
@@ -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>
 



More information about the vlc-commits mailing list