diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-01-16 15:03:41 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-01-16 15:03:41 +0000 |
commit | 436afa16af10297db12680519f57800c0891bbe5 (patch) | |
tree | 8eceb1636d85b85486dcced2ea96aa24add61ea2 /gcc/system.h | |
parent | b497fbc10a588b5b02c7f91246570b55795a2c5c (diff) |
system.h: Poison strndup (PR bootstrap/78616)
gcc/ChangeLog:
PR bootstrap/78616
* system.h: Poison strndup.
From-SVN: r244494
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/system.h b/gcc/system.h index 0cd58dba110..c0f08a99ed1 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -840,7 +840,8 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; #ifndef USES_ISL #undef calloc #undef strdup - #pragma GCC poison calloc strdup +#undef strndup + #pragma GCC poison calloc strdup strndup #endif #if !defined(FLEX_SCANNER) && !defined(YYBISON) |