[vlc-commits] Update update status files URLs
Rafaël Carré
git at videolan.org
Tue Apr 3 01:09:58 CEST 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Apr 2 18:58:30 2012 -0400| [87cfa6dd719667aa1b52f09ef242832b830b6a4f] | committer: Rafaël Carré
Update update status files URLs
- add a win64 file
- do not repeatedly define the constant part
- use the test URL on every platform using --enable-debug, not only win32
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87cfa6dd719667aa1b52f09ef242832b830b6a4f
---
src/misc/update.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/misc/update.c b/src/misc/update.c
index 41050bb..cf80471 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -75,17 +75,20 @@
*/
#if defined( UNDER_CE )
-# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-ce"
+# define UPDATE_OS_SUFFIX "-ce"
+#elif defined( WIN64 )
+# define UPDATE_OS_SUFFIX "-win-x64"
#elif defined( WIN32 )
-# ifndef NDEBUG
-# define UPDATE_VLC_STATUS_URL "http://update-test.videolan.org/vlc/status-win-x86"
-# else
-# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-win-x86"
-# endif
+# define UPDATE_OS_SUFFIX "-win-x86"
#else
-# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status"
+# define UPDATE_OS_SUFFIX ""
#endif
+#ifndef NDEBUG
+# define UPDATE_VLC_STATUS_URL "http://update-test.videolan.org/vlc/status-win-x86"
+#else
+# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status" UPDATE_OS_SUFFIX
+#endif
/*****************************************************************************
* Update_t functions
More information about the vlc-commits
mailing list