commit | a1858e3730f30bfc4734d3a790d2057d534efff6 | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Thu Jun 23 21:18:37 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 23 21:18:37 2022 +0000 |
tree | bb47da2df0ebaf309e71653d3b6ae07b76c39197 | |
parent | 39336b04b15040237cc298da9756a16945054d57 [diff] |
pw_span: Include system span header only if fresh enough Before this CL polyfill span was always included and relied on the __cpp_lib_span define. Some older standard libraries could have this one not defined which leads to ambiguity during compilation. This CL fetches __cpp_lib_span version first and includes system span header only if version is good enough, otherwise it fall backs to custom implementation. Change-Id: Ia20e649a2893259929f500154e2d74366feb2ca4 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/99540 Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Dennis Kormalev <denk@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.