blob: da5e281c9e8abc3537989cc5f578e4fa06f609f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/********************************************************************\
Copyright (c) 2014 by Aleksey Cheusov
See LICENSE file in the distribution.
\********************************************************************/
#ifndef _MKC_ERR_H_
#define _MKC_ERR_H_
#ifndef _MKC_CHECK_ERR
# error "Missing MKC_FEATURES += err"
#endif
#include <stdarg.h>
#if HAVE_HEADER_ERR_H
#include <err.h>
#endif
#ifdef MKC_ERR_IS_FINE
#include <err.h>
#else
#include "mkc_externc.h"
__MKC_BEGIN_DECLS
#include "mkc_macro.h"
#if !HAVE_FUNC3_ERR_ERR_H
void err (int, const char *, ...) __printflike(2, 3) __dead;
#endif
#if !HAVE_FUNC3_ERRX_ERR_H
void errx (int, const char *, ...) __printflike(2, 3) __dead;
#endif
#if !HAVE_FUNC3_VERR_ERR_H
void verr (int, const char *, va_list) __printflike(2, 0) __dead;
#endif
#if !HAVE_FUNC3_VERRX_ERR_H
void verrx (int, const char *, va_list) __printflike(2, 0) __dead;
#endif
__MKC_END_DECLS
#endif /* MKC_ERR_IS_FINE */
#endif // _MKC_ERR_H_
|