mirror of https://github.com/ARMmbed/mbed-os.git
Prevent compilation issues when someone has included <stdint.h> before a header file that needs to include <ns_list.h>. Some toolchains like ARM C 5 will not provide UINT_FAST8_MAX in C++ unless __STDC_LIMIT_MACROS is defined, and if this was not defined the first time <stdint.h> was included, it's too late. We can get the maximum value for our unsigned list offset by casting -1 to it, thanks to modulo arithmetic. |
||
|---|---|---|
| .. | ||
| TARGET_PSA | ||
| greentea-client | ||
| mbed-client-cli | ||
| mbed-client-randlib | ||
| mbed-coap | ||
| mbed-trace | ||
| nanostack-libservice | ||
| unity | ||
| utest | ||