mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Fix missing define.
This commit is contained in:
parent
2c18bf12f5
commit
6c69cdb93c
@ -591,7 +591,8 @@ bool menu_animation_push(float duration, float target_value, float* subject,
|
||||
size_t utf8len(const char *string); /* rgui.c */
|
||||
|
||||
/* Acts mostly like strlcpy. Copies the given number of UTF-8 characters, but at most d_len bytes.
|
||||
* Always NUL terminates. Does not copy half a character. Returns number of bytes. 's' is assumed valid UTF-8. */
|
||||
* Always NUL terminates. Does not copy half a character. Returns number of bytes. 's' is assumed valid UTF-8.
|
||||
* Use only if 'chars' is considerably less than 'd_len'. */
|
||||
size_t utf8cpy(char *d, size_t d_len, const char *s, size_t chars)
|
||||
{
|
||||
char *d_org = d;
|
||||
@ -630,6 +631,7 @@ const char *utf8skip(const char *str, size_t chars)
|
||||
}
|
||||
#else
|
||||
#define utf8len strlen
|
||||
#define utf8cpy(d,dl,s,sl) strlcpy(d,s,sl)
|
||||
#define utf8skip(str, chars) ((str)+(chars))
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user