mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
fixed nulldap problem in include file
This commit is contained in:
parent
66ac7a9121
commit
fe653a4333
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user