]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix compilation warning
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 Dec 2009 22:32:31 +0000 (23:32 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 29 Dec 2009 22:32:31 +0000 (23:32 +0100)
gnulib/regex_internal.h
include/grub/gnulib-wrap.h

index 977f8b02c61c85545baf62a8d204e2b249f07e5e..3cdc548d315ba31628a646b4b4f5298e766280bc 100644 (file)
@@ -58,7 +58,7 @@
 # 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
 
index 0e9235c1805939060716fabc8124519b0f0ae772..e3f7b23b0b571dd8848c18a11950ad87951454f5 100644 (file)
 #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;
@@ -165,6 +173,12 @@ calloc (grub_size_t size, grub_size_t nelem)
   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