[libc] C style static_assert takes two arguments
Fix this up and fix up the one existening dependency on the existing incorrect behaviour.
This commit is contained in:
@@ -24,6 +24,6 @@
|
||||
#define assert(e) DEBUG_ASSERT(e)
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define static_assert(e) STATIC_ASSERT(e)
|
||||
#define static_assert(e,r) _Static_assert(e, r)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <kernel/spinlock.h>
|
||||
|
||||
#include <platform/lpc43xx-usb.h>
|
||||
static_assert(sizeof(usb_dqh_t) == 64);
|
||||
static_assert(sizeof(usb_dtd_t) == 32);
|
||||
static_assert(sizeof(usb_dqh_t) == 64, "");
|
||||
static_assert(sizeof(usb_dtd_t) == 32, "");
|
||||
|
||||
#include <dev/udc.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user