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. |
||
---|---|---|
.. | ||
platform | ||
common_functions.h | ||
ip4string.h | ||
ip6string.h | ||
ip_fsc.h | ||
ns_list.h | ||
ns_nvm_helper.h | ||
ns_trace.h | ||
ns_types.h | ||
nsdynmemLIB.h |