From: Rafaël Carré Date: Wed, 26 Mar 2008 22:54:37 +0000 (+0100) Subject: Mozilla: fix compilation on OSX, where we don't use libX11 X-Git-Tag: 0.9.0-test0~1840 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1619a9c861e72e8b5badaccf95f4dfc989520e57;p=vlc Mozilla: fix compilation on OSX, where we don't use libX11 --- 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(); /*