Pedro Alves wrote:
Instead of trying to detect the right types, detect good-enough-pre-C++11 stdint.h and in such case make the substitute stdint.h just wrap the system's stdint.h with __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined.
Instead, how about just adding the necessary #defines for __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS to config.h if they are needed to fix the bug? Then we can leave stdint.h alone (perhaps not even build stdint.h at all).
