# define SIZE_MAX ((size_t) -1)
#endif
-#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_ISWCTYPE && HAVE_WCSCOLL) || _LIBC
+#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_ISWCTYPE && HAVE_WCSCOLL) || defined (_LIBC)
# define RE_ENABLE_I18N
#endif
#include <grub/mm.h>
#include <grub/misc.h>
+#define HAVE_ISBLANK 0
+#define HAVE_LIBINTL_H 0
+#define HAVE_LOCALE_H 0
+#define __STRICT_ANSI__ 0
+#define DEBUG 0
+#define _Restrict_ __restrict
+#define _Restrict_arr_ __restrict
+
typedef grub_size_t size_t;
typedef int bool;
static const bool true = 1;
return grub_zalloc (size * nelem);
}
+static inline char *strncpy (char *dest, const char *src, int c)
+{
+ return grub_strncpy (dest, src, c);
+}
+
+
#define ULONG_MAX GRUB_ULONG_MAX
#define UCHAR_MAX 0xff