Skip to content

Commit af37520

Browse files
committed
Use MBED_STATIC_ASSERT instead of static_assert
1 parent 199d108 commit af37520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/mbed_retarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ std::FILE *mbed_fdopen(FileHandle *fh, const char *mode)
828828
{
829829
// This is to avoid scanf(buf, ":%.4s", fh) and the bloat it brings.
830830
char buf[2 + sizeof(fh) + 1]; /* :(pointer) + null byte */
831-
static_assert(sizeof(buf) == 7, "Pointers should be 4 bytes.");
831+
MBED_STATIC_ASSERT(sizeof(buf) == 7, "Pointers should be 4 bytes.");
832832
buf[0] = ':';
833833
memcpy(buf + 1, &fh, sizeof(fh));
834834
buf[1 + sizeof(fh)] = '\0';

0 commit comments

Comments
 (0)