vlc | branch: master | Rafaël Carré <[email protected]> | Wed Jan 25 01:36:40 
2012 -0500| [7c6abb20451f26a175eebc426960f30afa440c72] | committer: Rafaël Carré

logger: move Apple related define where it is used

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

 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 9e68c3d..ebcfe26 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"
 
@@ -268,6 +264,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,

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to