1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

use #if instead of #ifdef to simplify the config file

This commit is contained in:
Stefan Lankes 2017-03-04 00:31:35 +01:00
parent cc1f19fe28
commit d55e2cd55d

View file

@ -26,7 +26,7 @@
extern "C" {
#endif
#ifdef HAVE_ARCH_MEMCPY
#if HAVE_ARCH_MEMCPY
/** @brief Copy a byte range from source to dest
*
* @param dest Destination address
@ -52,7 +52,7 @@ inline static void *memcpy(void* dest, const void *src, size_t count)
}
#endif
#ifdef HAVE_ARCH_MEMSET
#if HAVE_ARCH_MEMSET
/** @brief Repeated write of a value to a whole range of bytes
*
* @param dest Destination address
@ -84,7 +84,7 @@ inline static void *memset(void* dest, int val, size_t count)
}
#endif
#ifdef HAVE_ARCH_STRLEN
#if HAVE_ARCH_STRLEN
/** @brief Standard string length
*
* This function computed the length of the given null terminated string
@ -111,7 +111,7 @@ inline static size_t strlen(const char* str)
}
#endif
#ifdef HAVE_ARCH_STRNCPY
#if HAVE_ARCH_STRNCPY
/** @brief Copy string with maximum of n byte length
*
* @param dest Destination string pointer
@ -121,7 +121,7 @@ inline static size_t strlen(const char* str)
char* strncpy(char* dest, const char* src, size_t n);
#endif
#ifdef HAVE_ARCH_STRCPY
#if HAVE_ARCH_STRCPY
/** @brief Copy string
*
* Note that there is another safer variant of this function: strncpy.\n