# define CONFIG_DIR "config/settings/VideoLAN Client"
#elif defined (__APPLE__)
# define CONFIG_DIR "Library/Preferences/VLC"
+# define CACHES_DIR "Library/Caches/VLC"
#elif defined( WIN32 ) || defined( UNDER_CE )
# define CONFIG_DIR "vlc"
#else
#endif
#define CONFIG_FILE "vlcrc"
+
+
# ifdef __cplusplus
}
# endif
# define DIR_SHARE "share"
#endif
+
/**
* config_GetDataDir: find directory where shared data is installed
*
*/
char *config_GetCacheDir( void )
{
+#if defined(__APPLE__)
+ char *psz_dir;
+ const char *psz_parent = GetDir (true, false);
+
+ if( asprintf( &psz_dir, "%s" DIR_SEP CACHES_DIR, psz_parent ) == -1 )
+ psz_dir = NULL;
+
+ return psz_dir;
+#else
return config_GetFooDir ("CACHE", ".cache");
+#endif
}