Is it possible to determine at compile time whether an implementation provides exact-width integer types? Sample code (wanted):
#include <stdint.h>
#if HAS_EXACT_WIDTH_INTEGER_TYPES
uint32_t i;
#else
/* handle the case */
#endif
Reason of the question: writing an adaptable code, which does not lead to compile time errors if an implementation does not provide exact-width integer types.
C11/C17 7.20p4:
i.e.
uint32_texists iff#defined UINT32_MAX, etc.