aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-28 15:07:28 +0000
committerRoy Marples <roy@marples.name>2007-12-28 15:07:28 +0000
commit0c47c56cead35375cb786a7657cbbb0ab0eb4aaa (patch)
tree263dda248f7f5f98f7615ad2ad060aae528c758f
parentaa719aa2959b0b95884d5768c47c1f9ff0706211 (diff)
Although OpenRC requires C99, linking to us should not.
-rw-r--r--src/einfo.h11
1 files changed, 10 insertions, 1 deletions
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 <sys/types.h>
#include <stdbool.h>
+/* 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.