I found that in C99 you should #include <stdint.h>
and that seems to work with my C++03 gcc compiler too, but is that the right header for modern C++, is it portable?
In C++11, it's in <cstdint>
.
In older versions of the language, it didn't officially exist; but many compilers provided the C99 library as an extension, in which case it would be available in <stdint.h>
.