mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
* dwarf.c: Correct test of HAVE_DECL_STRNLEN.
From-SVN: r191437
This commit is contained in:
committed by
Ian Lance Taylor
parent
487e359c28
commit
30e15876ff
@@ -1,3 +1,7 @@
|
||||
2012-09-18 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* dwarf.c: Correct test of HAVE_DECL_STRNLEN.
|
||||
|
||||
2012-09-18 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
|
||||
|
||||
@@ -44,7 +44,7 @@ POSSIBILITY OF SUCH DAMAGE. */
|
||||
#include "backtrace.h"
|
||||
#include "internal.h"
|
||||
|
||||
#ifndef HAVE_DECL_STRNLEN
|
||||
#if !defined(HAVE_DECL_STRNLEN) || !HAVE_DECL_STRNLEN
|
||||
/* The function is defined in libiberty if needed. */
|
||||
extern size_t strnlen (const char *, size_t);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user