mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
use #if instead of #ifdef to simplify the config file
This commit is contained in:
parent
75893ac811
commit
5236ff236e
1 changed files with 8 additions and 8 deletions
|
@ -41,35 +41,35 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_MEMCPY
|
||||
#if !HAVE_ARCH_MEMCPY
|
||||
void *memcpy(void *dest, const void *src, size_t count);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_MEMSET
|
||||
#if !HAVE_ARCH_MEMSET
|
||||
void *memset(void *dest, int val, size_t count);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_MEMCMP
|
||||
#if !HAVE_ARCH_MEMCMP
|
||||
int memcmp(const void *s1, const void *s2, size_t n);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_STRLEN
|
||||
#if !HAVE_ARCH_STRLEN
|
||||
size_t strlen(const char *str);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_STRNCPY
|
||||
#if !HAVE_ARCH_STRNCPY
|
||||
char *strncpy(char *dest, const char *src, size_t n);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_STRCPY
|
||||
#if !HAVE_ARCH_STRCPY
|
||||
char *strcpy(char *dest, const char *src);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_STRCMP
|
||||
#if !HAVE_ARCH_STRCMP
|
||||
int strcmp(const char *s1, const char *s2);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARCH_STRNCMP
|
||||
#if !HAVE_ARCH_STRNCMP
|
||||
int strncmp(const char *s1, const char *s2, size_t n);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue