commit 37b438f146d52b5d09ed580949075aa11443a67a
parent c49f6215ea82e87bd6783664a1f7946cebc9344e
Author: sin <sin@2f30.org>
Date: Wed, 28 Jan 2015 17:47:08 +0000
Use #ifdef instead of #if defined
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/string.h b/include/string.h
@@ -102,7 +102,7 @@ char *__fortify_strncpy(char *__restrict dest, const char *__restrict src, size_
return strncpy(dest, src, n);
}
-#if defined(_GNU_SOURCE)
+#ifdef _GNU_SOURCE
static inline __attribute__ ((always_inline))
void *__fortify_mempcpy(void *__restrict dest, const void *__restrict src, size_t n)
{
@@ -155,7 +155,7 @@ size_t __fortify_strlcpy(char *__restrict dest, const char *__restrict src, size
#undef strncpy
#define strncpy(dest, src, n) __fortify_strcpy(dest, src, n)
-#if defined(_GNU_SOURCE)
+#ifdef _GNU_SOURCE
#undef mempcpy
#define mempcpy(dest, src, n) __fortify_mempcpy(dest, src, n)
#endif