'CXX_BUILD=1' build fix

This commit is contained in:
jdgleaver 2019-09-10 16:49:07 +01:00
parent ef3c83da04
commit c645d43598
2 changed files with 3 additions and 2 deletions

View File

@ -3124,7 +3124,7 @@ static unsigned menu_displaylist_parse_content_information(
/* Last Played */
tmp[0] = '\0';
runtime_log_get_last_played_str(runtime_log, tmp, sizeof(tmp),
settings->uints.playlist_sublabel_last_played_style);
(enum playlist_sublabel_last_played_style_type)settings->uints.playlist_sublabel_last_played_style);
if (!string_is_empty(tmp))
if (menu_entries_append_enum(info->list, tmp,

View File

@ -31,6 +31,7 @@
#include <streams/file_stream.h>
#include <formats/jsonsax_full.h>
#include <string/stdstring.h>
#include <encodings/utf.h>
#include "file_path_special.h"
#include "paths.h"
@ -969,7 +970,7 @@ void runtime_update_playlist(playlist_t *playlist, size_t idx)
/* Get current last played formatting type
* > Have to include a 'HAVE_MENU' check here... */
#ifdef HAVE_MENU
timedate_style = settings->uints.playlist_sublabel_last_played_style;
timedate_style = (enum playlist_sublabel_last_played_style_type)settings->uints.playlist_sublabel_last_played_style;
#else
timedate_style = PLAYLIST_LAST_PLAYED_STYLE_YMD_HMS
#endif