From 0c47c56cead35375cb786a7657cbbb0ab0eb4aaa Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 28 Dec 2007 15:07:28 +0000 Subject: Although OpenRC requires C99, linking to us should not. --- src/einfo.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/einfo.h b/src/einfo.h index 979d0c23..48321106 100644 --- a/src/einfo.h +++ b/src/einfo.h @@ -40,6 +40,15 @@ #include #include +/* Although OpenRC requires C99, linking to us should not. */ +#ifndef restrict +# ifdef __restrict +# define restrict __restrict +#else +# define restrict +# endif +#endif + /*! @brief Color types to use */ typedef enum { @@ -55,7 +64,7 @@ typedef enum const char *ecolor (einfo_color_t); /*! @brief Writes to syslog. */ -void elog (int __level, const char *__fmt, ...) __EEND_PRINTF; +void elog (int __level, const char * restrict __fmt, ...) __EEND_PRINTF; /*! * @brief Display informational messages. -- cgit v1.2.3