From: Vladimir 'phcoder' Serbinenko Date: Fri, 16 Aug 2013 12:10:37 +0000 (+0200) Subject: * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict X-Git-Tag: grub-2.02-beta1~896 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5c1eef106f40881b0f883fdf6e9caf04b144cc8;p=thirdparty%2Fgrub.git * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict on NetBSD and OpenBSD. --- diff --git a/ChangeLog b/ChangeLog index bce32d760..ca072dbd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-08-16 Vladimir Serbinenko + + * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict + on NetBSD and OpenBSD. + 2013-08-15 Vladimir Testov * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed. diff --git a/grub-core/lib/posix_wrap/wchar.h b/grub-core/lib/posix_wrap/wchar.h index fb90cc044..7a27ecf91 100644 --- a/grub-core/lib/posix_wrap/wchar.h +++ b/grub-core/lib/posix_wrap/wchar.h @@ -21,6 +21,11 @@ #include +#if defined(__NetBSD__) || defined(__OPENBSD__) +#define wchar_t grub_posix_wchar_t +#define mbstate_t grub_posix_mbstate_t +#endif + /* UCS-4. */ typedef grub_int32_t wint_t; enum