From e05e5231944441a76f4b7cf66b98e8c7b74b3db9 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Fri, 27 May 2016 09:48:29 -0700 Subject: [PATCH] in case where DEBUGSERIAL is not defined, make sure stubs compile properly to nothing. Fix code to compile properly with no-DEBUGSERIAL case. --- src/lib/16_dbg.h | 12 ++++++++---- src/lib/16_in.h | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h index b8c39f6f..e408ac0c 100644 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,10 +1,13 @@ -#ifdef DEBUGSERIAL -# include +#ifndef _SRC_LIB_16_DBG +#define _SRC_LIB_16_DBG + +# ifdef DEBUGSERIAL +# include void _DEBUG(const char *msg); int _DEBUG_INIT(); -#else +# else static inline void _DEBUG(const char *msg) { // NOTHING } @@ -13,5 +16,6 @@ static inline int _DEBUG_INIT() { // NOTHING return -1; } -#endif +# endif +#endif // _SRC_LIB_16_DBG diff --git a/src/lib/16_in.h b/src/lib/16_in.h index 9ac30e81..beb6a3d3 100755 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -32,6 +32,7 @@ #include "src/lib/16_timer.h" #include "src/lib/bitmap.h" #include "src/lib/planar.h" +#include "src/lib/16_dbg.h" #ifdef __DEBUG__ //#define __DEBUG_InputMgr__ -- 2.39.2