Skip to content

Commit 18ea57e

Browse files
committed
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.
1 parent a9a8f75 commit 18ea57e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

netdissect-stdinc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@
166166
*/
167167
#define isatty _isatty
168168
#define stat _stat
169-
#define strdup _strdup
170169
#define open _open
171170
#define read _read
172171
#define close _close

0 commit comments

Comments
 (0)