1
0
Fork 0
forked from len0rd/rockbox

Fix Auto Ranged Time Fix Red for Database

Change-Id: I8f4edc4ca84792f977ea673d2435e15f7e2da14e
This commit is contained in:
William Wilgus 2018-12-22 14:31:40 -06:00
parent 4a8f263a7d
commit d258edbb4f

View file

@ -1111,7 +1111,8 @@ char* skip_whitespace(char* const str)
return s;
}
#ifndef CHECKWPS
#if !defined(CHECKWPS) && !defined(DBTOOL)
/* time_split_units()
split time values depending on base unit
unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS
@ -1337,7 +1338,8 @@ void format_time(char* buf, int buf_size, long t)
t < 0, "-", units_in[UNIT_IDX_HR], hashours, ":",
hashours+1, units_in[UNIT_IDX_MIN], units_in[UNIT_IDX_SEC]);
}
#endif /* !defined(CHECKWPS) */
#endif /* !defined(CHECKWPS) && !defined(DBTOOL)*/
/**
* Splits str at each occurence of split_char and puts the substrings into vector,
* but at most vector_lenght items. Empty substrings are ignored.