C99 stdint.h 头文件和 MS Visual Studio

2021-12-02 00:00:00 visual-studio c c++ c99

令我惊讶的是,我刚刚发现 MS Visual Studio 2003 以上缺少 C99 stdint.h.我相信他们有他们的理由,但有谁知道我可以在哪里下载副本?没有这个标题,我就没有有用类型的定义,比如 uint32_t 等.

To my amazement I just discovered that the C99 stdint.h is missing from MS Visual Studio 2003 upwards. I'm sure they have their reasons, but does anyone know where I can download a copy? Without this header I have no definitions for useful types such as uint32_t, etc.

推荐答案

原来您可以从以下位置下载此标题的 MS 版本:

Turns out you can download a MS version of this header from:

https://github.com/mattn/gntp-send/blob/master/include/msinttypes/stdint.h

可在此处找到便携式设备:

A portable one can be found here:

http://www.azillionmonkeys.com/qed/pstdint.h

感谢 软件漫游的博客.

相关文章