fixed nulldap problem in include file

This commit is contained in:
Ed Hartnett 2011-09-30 15:56:02 +00:00
parent 66ac7a9121
commit fe653a4333

View File

@ -23,6 +23,15 @@ extern char* strdup(const char*);
#endif
/* handle null arguments */
#ifndef nulldup
#ifdef HAVE_STRDUP
#define nulldup(s) ((s)==NULL?NULL:strdup(s))
#else
char *nulldup(const char* s);
#endif
#endif
#ifndef nulldup
#define nulldup(s) ((s)==NULL?NULL:strdup(s))
#endif