From: Jonathan Campbell Date: Fri, 27 May 2016 16:48:29 +0000 (-0700) Subject: in case where DEBUGSERIAL is not defined, make sure stubs compile X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=commitdiff_plain;h=e05e5231944441a76f4b7cf66b98e8c7b74b3db9 in case where DEBUGSERIAL is not defined, make sure stubs compile properly to nothing. Fix code to compile properly with no-DEBUGSERIAL case. --- 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__