From 1619a9c861e72e8b5badaccf95f4dfc989520e57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 26 Mar 2008 23:54:37 +0100 Subject: [PATCH] Mozilla: fix compilation on OSX, where we don't use libX11 --- projects/mozilla/vlcshell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp index 13696ac595..de0011a978 100644 --- a/projects/mozilla/vlcshell.cpp +++ b/projects/mozilla/vlcshell.cpp @@ -364,8 +364,10 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save ) NPError NPP_SetWindow( NPP instance, NPWindow* window ) { +#ifdef XP_UNIX && !defined(__APPLE__) Window control; unsigned int i_control_height = 0, i_control_width = 0; +#endif if( ! instance ) { @@ -379,8 +381,9 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) /* we should probably show a splash screen here */ return NPERR_NO_ERROR; } +#ifdef XP_UNIX && !defined(__APPLE__) control = p_plugin->getControlWindow(); - +#endif libvlc_instance_t *p_vlc = p_plugin->getVLC(); /* -- 2.39.2