common_macros: Include sys/cdefs.h, defines _Static_assert among others

This commit is contained in:
Angus Gratton 2015-08-26 11:11:31 +10:00
parent 07ba9ec6ea
commit f2651d1be3

View file

@ -10,6 +10,8 @@
#ifndef _COMMON_MACROS_H #ifndef _COMMON_MACROS_H
#define _COMMON_MACROS_H #define _COMMON_MACROS_H
#include <sys/cdefs.h>
#define UNUSED __attributed((unused)) #define UNUSED __attributed((unused))
#ifndef BIT #ifndef BIT