summaryrefslogtreecommitdiff
path: root/features/mkc_err.h
diff options
context:
space:
mode:
Diffstat (limited to 'features/mkc_err.h')
-rw-r--r--features/mkc_err.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/features/mkc_err.h b/features/mkc_err.h
new file mode 100644
index 0000000..16ee12f
--- /dev/null
+++ b/features/mkc_err.h
@@ -0,0 +1,36 @@
+/********************************************************************\
+ Copyright (c) 2014 by Aleksey Cheusov
+
+ See LICENSE file in the distribution.
+\********************************************************************/
+
+#ifndef _MKC_ERR_H_
+#define _MKC_ERR_H_
+
+#include <stdarg.h>
+
+#if HAVE_HEADER_ERR_H
+#include <err.h>
+#endif
+
+#ifdef MKC_ERR_IS_FINE
+
+#include <err.h>
+
+#else
+#if !HAVE_FUNC3_ERR_ERR_H
+void err (int, const char *, ...);
+#endif
+#if !HAVE_FUNC3_ERRX_ERR_H
+void errx (int, const char *, ...);
+#endif
+#if !HAVE_FUNC3_VERR_ERR_H
+void verr (int, const char *, va_list);
+#endif
+#if !HAVE_FUNC3_VERRX_ERR_H
+void verrx (int, const char *, va_list);
+#endif
+
+#endif /* MKC_ERR_IS_FINE */
+
+#endif // _MKC_ERR_H_