aboutsummaryrefslogtreecommitdiffstats
path: root/reallocarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'reallocarray.c')
-rw-r--r--reallocarray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/reallocarray.c b/reallocarray.c
index 640e84a..d54e2eb 100644
--- a/reallocarray.c
+++ b/reallocarray.c
@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#include "libsimple.h"
+#include "common.h"
#ifndef TEST
@@ -42,14 +42,14 @@ main(void)
assert(!alloc_fail_in);
}
-#if defined(__GNUC__) && !defined(__clang)
+#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Walloc-size-larger-than="
#endif
assert(!libsimple_reallocarray(NULL, SIZE_MAX, SIZE_MAX) && errno == ENOMEM);
-#if defined(__GNUC__) && !defined(__clang)
+#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic pop
#endif