dprintf: always define dprintf2/vdprintf2 syslinux-4.05-pre2
authorH. Peter Anvin <hpa@zytor.com>
Tue, 21 Jun 2011 04:33:38 +0000 (21:33 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 21 Jun 2011 04:33:38 +0000 (21:33 -0700)
Always define dprintf2/vdprintf2 even with no debugging at all
enabled.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/include/dprintf.h

index 4bdf7a7..b8a3b84 100644 (file)
@@ -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 */