mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 10:04:05 +08:00
Revert "Add PRIsize, to use as the print format for size_t"
This reverts commit 40f1cf8aa7
.
We will use %zu as the print format for size_t because C99 support it and
also Visual Studio VS 2015 and after.
This commit is contained in:
parent
6313179f4b
commit
27eabd022a
@ -148,23 +148,12 @@
|
||||
#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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user