]> 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]>
Thu, 8 Aug 2019 12:09:21 +0000 (14:09 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 8 Aug 2019 12:09:21 +0000 (14:09 +0200)
This reverts commit 5cab4e9b053327d4b4836f346c4e9aaab93c7176.

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 7dfc743de6dae64668c384eb8d1f2b6ae8261d47..8282c58462be3ac8e92a4c915eb3c1aa5c4652ce 100644 (file)
 #define PRIx64         "I64x"
 #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"
 #else /* _MSC_EXTENSIONS */
 
 #ifndef uint64_t
 #define PRIx64         "llx"
 #endif
 
-/*
- * Assume the support library supports %zu; it's required by C99.
- */
-#define PRIsize                "zu"
 #endif /* _MSC_EXTENSIONS */
 
 /*