mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 12:31:45 +08:00
Configure sets HAVE_STRDUP, check for that instead of NEED_STRDUP.
This commit is contained in:
parent
2d2ec7db98
commit
f874ad60ab
@ -23,7 +23,7 @@
|
||||
|
||||
#define MAX_TOTAL_MATCHES (256 << sizeof(char *))
|
||||
|
||||
#ifdef NEED_STRDUP
|
||||
#ifndef HAVE_STRDUP
|
||||
/* Return an allocated copy of a string. */
|
||||
char *strdup(const char *p)
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ extern int strlen(const char *s);
|
||||
extern int strncmp(const char *s1, const char *s2, size_t n);
|
||||
#endif/* !HAVE_STDLIB */
|
||||
|
||||
#ifdef NEED_STRDUP
|
||||
#ifndef HAVE_STRDUP
|
||||
extern char *strdup(const char *s);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user