stdint.h Header in MS Visual Studio
The C99 stdint.h header, which provides standardized definitions for integer types like uint32_t, is surprisingly absent from Microsoft Visual Studio versions 2003 and later. Finding a suitable replacement can be frustrating.
However, a Microsoft-specific version of stdint.h can be downloaded from:
https://github.com/mattn/gntp-send/blob/master/include/msinttypes/stdint.h
For a portable alternative, visit:
http://www.azillionmonkeys.com/qed/pstdint.h
Additionally, a public domain version can be found in the Android source tree for libusb_aah, or as an archived copy here (thanks to Michael Burr).
With these options available, developers using MS Visual Studio can now access the valuable stdint.h header, providing definitions for crucial integer types.
The above is the detailed content of Where Can I Find a stdint.h Replacement for MS Visual Studio?. For more information, please follow other related articles on the PHP Chinese website!