Isn't strdup.h useless code?

Started by Tom Laneover 19 years ago1 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

While looking around to see where to insert strlcpy(), I couldn't help
noticing that port/strdup.c has its very own header file,
include/strdup.h. AFAICS this is utterly redundant given that we have

#ifndef HAVE_STRDUP
extern char *strdup(char const *);
#endif

in port.h. Can anyone see a reason not to remove the extra header?

regards, tom lane