* grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...

* grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-01-14 11:48:56 +01:00
parent 8ee1101a97
commit b4bf7c3b20
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
* grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp

View file

@ -52,6 +52,4 @@ abort (void)
grub_abort ();
}
#define MB_CUR_MAX 6
#endif

View file

@ -28,8 +28,6 @@ enum
WEOF = -1
};
#define MB_LEN_MAX 4
/* UCS-4. */
typedef grub_int32_t wchar_t;
@ -38,6 +36,10 @@ typedef struct mbstate {
int count;
} mbstate_t;
/* UTF-8. */
#define MB_CUR_MAX 4
#define MB_LEN_MAX 4
static inline size_t
mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
{