2010-01-01 Yves Blusseau <blusseau@zetam.org>
* kern/misc.c (memcmp): add missing memcmp "alias" function for Apple platforms (memset): add missing memset "alias" function for Apple platforms
This commit is contained in:
parent
b1c10d4412
commit
18f81dfc02
1 changed files with 11 additions and 1 deletions
12
kern/misc.c
12
kern/misc.c
|
@ -1,7 +1,7 @@
|
||||||
/* misc.c - definitions of misc functions */
|
/* misc.c - definitions of misc functions */
|
||||||
/*
|
/*
|
||||||
* GRUB -- GRand Unified Bootloader
|
* GRUB -- GRand Unified Bootloader
|
||||||
* Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software Foundation, Inc.
|
* Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* GRUB is free software: you can redistribute it and/or modify
|
* GRUB is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -227,6 +227,11 @@ grub_memcmp (const void *s1, const void *s2, grub_size_t n)
|
||||||
#ifndef APPLE_CC
|
#ifndef APPLE_CC
|
||||||
int memcmp (const void *s1, const void *s2, grub_size_t n)
|
int memcmp (const void *s1, const void *s2, grub_size_t n)
|
||||||
__attribute__ ((alias ("grub_memcmp")));
|
__attribute__ ((alias ("grub_memcmp")));
|
||||||
|
#else
|
||||||
|
int memcmp (const void *s1, const void *s2, grub_size_t n)
|
||||||
|
{
|
||||||
|
return grub_memcmp (s1, s2, n);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -512,6 +517,11 @@ grub_memset (void *s, int c, grub_size_t n)
|
||||||
#ifndef APPLE_CC
|
#ifndef APPLE_CC
|
||||||
void *memset (void *s, int c, grub_size_t n)
|
void *memset (void *s, int c, grub_size_t n)
|
||||||
__attribute__ ((alias ("grub_memset")));
|
__attribute__ ((alias ("grub_memset")));
|
||||||
|
#else
|
||||||
|
void *memset (void *s, int c, grub_size_t n)
|
||||||
|
{
|
||||||
|
return grub_memset (s, c, n);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
grub_size_t
|
grub_size_t
|
||||||
|
|
Loading…
Reference in a new issue