[vlc-commits] logger: move Apple related define where it is used

Rafaël Carré git at videolan.org
Wed Jan 25 07:50:21 CET 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Wed Jan 25 01:36:40 2012 -0500| [7b002b05639de4adbe58bf8365eec104242cd213] | committer: Rafaël Carré

logger: move Apple related define where it is used
(cherry picked from commit 7c6abb20451f26a175eebc426960f30afa440c72)

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=7b002b05639de4adbe58bf8365eec104242cd213
---

 modules/misc/logger.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 6ef0792..dbd8483 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -42,10 +42,6 @@
 # include <android/log.h>
 #endif
 
-#ifdef __APPLE__
-#define LOG_DIR "Library/Logs/"
-#endif
-
 #define LOG_FILE_TEXT "vlc-log.txt"
 #define LOG_FILE_HTML "vlc-log.html"
 
@@ -276,6 +272,7 @@ static int Open( vlc_object_t *p_this )
         if( !psz_file )
         {
 #ifdef __APPLE__
+# define LOG_DIR "Library/Logs/"
             char *home = config_GetUserDir(VLC_DOCUMENTS_DIR);
             if( home == NULL
              || asprintf( &psz_file, "%s/"LOG_DIR"/%s", home,



More information about the vlc-commits mailing list