diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-22 23:06:27 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-22 23:06:27 +0200 |
commit | 53983812bade3c0412d900ef2cac01e65c860d0a (patch) | |
tree | c6eae4209bbe84ad284e9493805f1c829e2ea29b | |
parent | 1068b38e71c1445d3a09e1ecb63d647e5c354aeb (diff) |
Include <stdio.h> when -DDEBUG is passed
-rw-r--r-- | src/common.h | 5 |
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 */ |