Is it possible to determine at compile time whether an implementation provides exact-width integer types? [duplicate]

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.



from Recent Questions - Stack Overflow https://ift.tt/3x8WS8y
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)