rpi_pico: add support for Pi Pico and C11
Currently if C11 or higher is enabled, many files fail to compile because
static_assert is defined in multiple header files. Solve this by
disabling the one in the HAL if the other macro is found
* BUILD_ASSERT is included through toolchain.h.
*/
#include <zephyr/toolchain.h>
+#if !defined(__cplusplus) && !defined(static_assert)
#define static_assert(expr, msg...) BUILD_ASSERT((expr), "" msg)
+#endif /* static_assert && __cplusplus__ */
/* Convert uses of asm, which is not supported in c99, to __asm */
#define asm __asm
