Synopsis: | Do not define types or macros with the same name as types or macros in stdint.h. |
Language: | C |
Severity Level: | 4 |
Category: | Library |
Description: |
Justification With some compiler versions stdint.h will be included by default. Defining one's own variables, types or macros with the same names as defined in stdint.h may cause conflicts. Example long int32_t; /* WRONG */ Note Some examples of types defined in stdint.h are: int8_t, uint8_t, int32_t, uint32_t, int_least8_t, int_fast8_t, intptr_t, and intmax_t. Some examples of macros defined in stdint.h are: UINT64_C, INT16_MIN, INT64_MAX, INT_FAST32_MAX, INTPTR_MIN, and UINTMAX_MA. |