diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-06-20 21:33:38 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-05-18 16:03:47 -0700 |
commit | 28b6380be03908a3c3a7a93254e9dcbc0e74592a (patch) | |
tree | e4ec327b671cebaaee272b4b434262af40b8581d | |
parent | 9bbf072fdd06ea00aff5d961d35b79f1ef114fa2 (diff) | |
download | syslinux-28b6380be03908a3c3a7a93254e9dcbc0e74592a.tar.gz syslinux-28b6380be03908a3c3a7a93254e9dcbc0e74592a.tar.xz syslinux-28b6380be03908a3c3a7a93254e9dcbc0e74592a.zip |
dprintf: always define dprintf2/vdprintf2
Always define dprintf2/vdprintf2 even with no debugging at all
enabled.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-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 */ |