Skip to content

Commit

Permalink
Make static_assert compatible with C++11
Browse files Browse the repository at this point in the history
Fix #1281
  • Loading branch information
hzeller committed Mar 23, 2021
1 parent d209f3c commit dfc27c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/led-matrix-c.cc
Expand Up @@ -23,8 +23,8 @@
#include "graphics.h"

// Make sure C++ is in sync with C
static_assert(sizeof(rgb_matrix::RGBMatrix::Options) == sizeof(RGBLedMatrixOptions));
static_assert(sizeof(rgb_matrix::RuntimeOptions) == sizeof(RGBLedRuntimeOptions));
static_assert(sizeof(rgb_matrix::RGBMatrix::Options) == sizeof(RGBLedMatrixOptions), "C and C++ out of sync");
static_assert(sizeof(rgb_matrix::RuntimeOptions) == sizeof(RGBLedRuntimeOptions), "C and C++ out of sync");

// Our opaque dummy structs to communicate with the c-world
struct RGBLedMatrix {};
Expand Down

0 comments on commit dfc27c1

Please sign in to comment.