From 6ed7ed47119acf3033a9a43da4b792b6ecb574bc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 29 Jan 2018 01:44:30 -0800 Subject: [PATCH] Another UN*Xism we need - isascii(). I guess it's not in ISO C because the character set of an ISO C implementation isn't necessarily ASCII (EBCDIC, in IBM's C for z/OS and IBM i). --- netdissect-stdinc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h index d78b6639..84f726a4 100644 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -209,6 +209,12 @@ #endif #ifdef _MSC_VER + /* + * Microsoft tries to avoid polluting the C namespace with UN*Xisms, + * by adding a preceding underscore; we *want* the UN*Xisms, so add + * #defines to let us use them. + */ + #define isascii __isascii #define stat _stat #define strdup _strdup #define open _open -- 2.39.5