Mozilla: fix compilation on OSX, where we don't use libX11
authorRafaël Carré <funman@videolan.org>
Wed, 26 Mar 2008 22:54:37 +0000 (23:54 +0100)
committerRafaël Carré <funman@videolan.org>
Wed, 26 Mar 2008 22:54:37 +0000 (23:54 +0100)
projects/mozilla/vlcshell.cpp

index 13696ac..de0011a 100644 (file)
@@ -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();
 
     /*