aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/dprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/include/dprintf.h')
-rw-r--r--com32/include/dprintf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/com32/include/dprintf.h b/com32/include/dprintf.h
new file mode 100644
index 00000000..4c9682c0
--- /dev/null
+++ b/com32/include/dprintf.h
@@ -0,0 +1,22 @@
+/*
+ * dprintf.h
+ */
+
+#ifndef _DPRINTF_H
+#define _DPRINTF_H
+
+#ifdef DEBUG
+
+#include <stdio.h>
+
+int dprintf(const char *, ...);
+int vdprintf(const char *, va_list);
+
+#else
+
+#define dprintf(fmt, ...) ((void)(0))
+#define vdprintf(fmt, ap) ((void)(0))
+
+#endif /* DEBUG */
+
+#endif /* _DPRINTF_H */