aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-22 23:06:27 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-22 23:06:27 +0200
commit53983812bade3c0412d900ef2cac01e65c860d0a (patch)
treec6eae4209bbe84ad284e9493805f1c829e2ea29b /src
parent1068b38e71c1445d3a09e1ecb63d647e5c354aeb (diff)
Include <stdio.h> when -DDEBUG is passed
Diffstat (limited to 'src')
-rw-r--r--src/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index d0cdbda..6a142f7 100644
--- a/src/common.h
+++ b/src/common.h
@@ -12,4 +12,9 @@
# define unlikely(x) (x)
#endif
+/* Make printf() always available in debug builds */
+#ifdef DEBUG
+# include <stdio.h>
+#endif
+
#endif /* !ORYX_COMMON_H */