From af37520e42d49008b0f49deb7f93a0aa79b8c25f Mon Sep 17 00:00:00 2001 From: Fahrzin Hemmati Date: Mon, 31 Jul 2017 08:28:05 -0700 Subject: [PATCH] Use MBED_STATIC_ASSERT instead of static_assert --- platform/mbed_retarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mbed_retarget.cpp b/platform/mbed_retarget.cpp index 351a941ab4..2291b6df57 100644 --- a/platform/mbed_retarget.cpp +++ b/platform/mbed_retarget.cpp @@ -828,7 +828,7 @@ std::FILE *mbed_fdopen(FileHandle *fh, const char *mode) { // This is to avoid scanf(buf, ":%.4s", fh) and the bloat it brings. char buf[2 + sizeof(fh) + 1]; /* :(pointer) + null byte */ - static_assert(sizeof(buf) == 7, "Pointers should be 4 bytes."); + MBED_STATIC_ASSERT(sizeof(buf) == 7, "Pointers should be 4 bytes."); buf[0] = ':'; memcpy(buf + 1, &fh, sizeof(fh)); buf[1 + sizeof(fh)] = '\0';