netdissect-stdinc: get rid of an extra definition of strdup.

We first unconditionally define it, and then later only define it if
it's already defined.  Microsoft defines it for us, but has deprecated
that definition because it pollutes the ISO C namespace with a POSIXism;
try just doing the conditional definition.
This commit is contained in:
Guy Harris 2024-09-09 15:09:01 -07:00
parent a9a8f757b9
commit 18ea57e19b

View File

@ -166,7 +166,6 @@
*/
#define isatty _isatty
#define stat _stat
#define strdup _strdup
#define open _open
#define read _read
#define close _close