]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Another UN*Xism we need - isascii().
authorGuy Harris <[email protected]>
Mon, 29 Jan 2018 09:44:30 +0000 (01:44 -0800)
committerGuy Harris <[email protected]>
Mon, 29 Jan 2018 09:44:30 +0000 (01:44 -0800)
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

index d78b66395f1b2c515afeae78dd2738f36060b1aa..84f726a47bf6da8abe12d97d43dbd8a7554d66a8 100644 (file)
 #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