Add syslinux.changes abd manifest
[external/syslinux.git] / com32 / include / dprintf.h
1 /*
2  * dprintf.h
3  */
4
5 #ifndef _DPRINTF_H
6 #define _DPRINTF_H
7
8 #ifdef DEBUG
9
10 # include <stdio.h>
11
12 # ifdef DEBUG_STDIO
13 #  define dprintf  printf
14 #  define vdprintf vprintf
15 # else
16 void dprintf(const char *, ...);
17 void vdprintf(const char *, va_list);
18 # endif
19
20 #else
21
22 # define dprintf(fmt, ...)      ((void)(0))
23 # define vdprintf(fmt, ap)      ((void)(0))
24
25 #endif /* DEBUG */
26
27 # if DEBUG >= 2
28 /* Really verbose debugging... */
29 #  define dprintf2  dprintf
30 #  define vdprintf2 vdprintf
31 # else
32 #  define dprintf2(fmt, ...)    ((void)(0))
33 #  define vdprintf2(fmt, ap)    ((void)(0))
34 # endif
35
36 #endif /* _DPRINTF_H */