[vlc-devel] commit: update.c: ifdef some win32 specific code (Geoffroy Couprie )

git version control git at videolan.org
Sat Feb 27 19:25:12 CET 2010


vlc | branch: master | Geoffroy Couprie <geal at videolan.org> | Sat Feb 27 19:24:44 2010 +0100| [92c3f4a5c88652aa8cdcca9b4406b8a836342949] | committer: Geoffroy Couprie 

update.c: ifdef some win32 specific code

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

 src/misc/update.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/misc/update.c b/src/misc/update.c
index 315223a..8a48673 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -52,9 +52,9 @@
 
 #include <gcrypt.h>
 #include <vlc_gcrypt.h>
-
+#ifdef WIN32
 #include <shellapi.h>
-
+#endif
 #include "update.h"
 #include "../libvlc.h"
 
@@ -732,6 +732,7 @@ static void* update_DownloadReal( vlc_object_t *p_this )
     msg_Info( p_udt, "%s authenticated", psz_destfile );
     free( p_hash );
 
+#ifdef WIN32
     int answer = dialog_Question( p_udt, _("Update VLC media player"),
     _("The new version was successfully downloaded. Do you want to close VLC and install it now?"),
     _("Install"), _("Cancel"), NULL);
@@ -742,6 +743,7 @@ static void* update_DownloadReal( vlc_object_t *p_this )
         if(answer > 32)
             libvlc_Quit(p_this->p_libvlc);
     }
+#endif
 end:
     if( p_progress )
         dialog_ProgressDestroy( p_progress );




More information about the vlc-devel mailing list