]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Revert "Add PRIsize, to use as the print format for size_t"
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 7 Aug 2019 12:10:56 +0000 (14:10 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 8 Aug 2019 09:17:29 +0000 (11:17 +0200)
This reverts commit 40f1cf8aa72185cce0994aaaf8b14d524e5a4d8b.

We will use %zu as the print format for size_t because C99 support it and
also Visual Studio VS 2015 and after.

netdissect-stdinc.h

index 9cf3cf07a5426d1a0d2bfa3cf844270a378f4fba..5aef8234c44ef4fcdc57c5975fe503e027c69732 100644 (file)
         #define PRIu64 "llu"
       #endif
     #endif
-
-    /*
-     * MSVC's support library doesn't support %zu to print a size_t until
-     * Visual Studio 2017, but supports %Iu earlier, so use that.
-     */
-    #define PRIsize    "Iu"
   #elif defined(__MINGW32__) || !defined(_WIN32)
     /*
      * Compiler is MinGW or target is UN*X or MS-DOS.  Just use
      * <inttypes.h>.
      */
     #include <inttypes.h>
-
-    /*
-     * Assume the support library supports %zu; it's required by C99.
-     */
-    #define PRIsize    "zu"
   #endif
 #endif /* HAVE_PCAP_PCAP_INTTYPES_H */