From 8c13508c0708412ad0c7ef3b1b14dca7b25bc40a Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Tue, 11 Aug 2020 17:33:53 -0700 Subject: [PATCH] Debug checks use printf() and therefore require so include it if debug checks are on. modified: inc/stack.h --- inc/stack.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/stack.h b/inc/stack.h index fbcab15..43b177a 100755 --- a/inc/stack.h +++ b/inc/stack.h @@ -390,6 +390,8 @@ typedef struct stackp #ifdef STACKCHECK +#include + #define S_CHECK(condition, msg) \ { \ if(!(condition)) \ @@ -403,7 +405,7 @@ typedef struct stackp { \ if(!(condition)) \ { \ - printf("\n\nStack check failed at 0x%x: %s.\n\n", (scanptr), (msg)); \ + printf("\n\nStack check failed at %p: %s.\n\n", (scanptr), (msg)); \ } \ }