diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-06-20 21:33:38 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-06-20 21:33:38 -0700 |
commit | b61f33c5b80f3a957095717775da4908a1e5ada6 (patch) | |
tree | 0e33aebccd4b6ee05e0cdbe0cea4a911ee96b7e6 /com32/include | |
parent | ccd3c55c47543ee0447f4a5cb545f9d2a22327d9 (diff) | |
download | syslinux-b61f33c5b80f3a957095717775da4908a1e5ada6.tar.gz |
dprintf: always define dprintf2/vdprintf2syslinux-4.05-pre2
Always define dprintf2/vdprintf2 even with no debugging at all
enabled.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include')
-rw-r--r-- | com32/include/dprintf.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/com32/include/dprintf.h b/com32/include/dprintf.h index 4bdf7a76..b8a3b84c 100644 --- a/com32/include/dprintf.h +++ b/com32/include/dprintf.h @@ -17,6 +17,13 @@ void dprintf(const char *, ...); void vdprintf(const char *, va_list); # endif +#else + +# define dprintf(fmt, ...) ((void)(0)) +# define vdprintf(fmt, ap) ((void)(0)) + +#endif /* DEBUG */ + # if DEBUG >= 2 /* Really verbose debugging... */ # define dprintf2 dprintf @@ -26,11 +33,4 @@ void vdprintf(const char *, va_list); # define vdprintf2(fmt, ap) ((void)(0)) # endif -#else - -# define dprintf(fmt, ...) ((void)(0)) -# define vdprintf(fmt, ap) ((void)(0)) - -#endif /* DEBUG */ - #endif /* _DPRINTF_H */ |