Commit 7b002b05 authored by Rafaël Carré's avatar Rafaël Carré

logger: move Apple related define where it is used

(cherry picked from commit 7c6abb20)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 32b662e4
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment