stdint.h was introduced with C99 in, well 1999.mk79 wrote:Sounds strange at first, but Microsoft is all about compatibility and in that context it does make sense. I once had to port 200.000 lines of a 3rd party C++ framework from 32 to 64-bit for work. An external company provided an estimate of cost of 45000€ for this. In the end I did it myself in just one week because due to the choices Microsoft made it's all fairly easy (except the hidden cases where pointers were cast into integers... but Visual Studio's compiler warnings usually helped there a lot, too). And no, I didn't get the 45000€, but it helped reinforcing my image as the local magician.mfro wrote:That is, btw, a dangerous assumption as it's not generally true. Microsoft, for example, in their ultimate wisdom, decided a 32 bit long is "long enough", even on a 64 bit system.
True. I use that with my C68 projects, too, but seeing Tobias comment I might have written the stdint.h myself in this case, I don't remember.With a reasonably modern C system, you have the stdint.h include file with definitions of types (like int16_t, for example) for fixed bit length.
C68 proudly states in some documents to be partially compatible to "the ANSI C pre-standard" - which is C89 - from, well '90. we can be just about happy that C++ comments are supported, albeit with the preprocessor choking on them every now and then.
My installation doesn't have a stdint_h - but soon it might, as it's admittedly useful.