diff --git a/c/rwonce.h b/c/rwonce.h index d21656b..90a28bc 100644 --- a/c/rwonce.h +++ b/c/rwonce.h @@ -24,8 +24,12 @@ #ifndef __BR_RWONCE_H #define __BR_RWONCE_H -/************ originally in */ -# define __compiletime_error(message) __attribute__((error(message))) +/************ originally in */ +#if __has_attribute(__error__) +# define __compiletime_error(msg) __attribute__((__error__(msg))) +#else +# define __compiletime_error(msg) +#endif /************ originally in */ /*