]> 4ch.mooo.com Git - 16.git/commitdiff
in case where DEBUGSERIAL is not defined, make sure stubs compile
authorJonathan Campbell <jonathan@castus.tv>
Fri, 27 May 2016 16:48:29 +0000 (09:48 -0700)
committerJonathan Campbell <jonathan@castus.tv>
Fri, 27 May 2016 16:48:29 +0000 (09:48 -0700)
properly to nothing. Fix code to compile properly with no-DEBUGSERIAL
case.

src/lib/16_dbg.h
src/lib/16_in.h

index b8c39f6f647f47c6dffad34516a9d34d9fa913f6..e408ac0ca84e8c3f52fa437bd47998ab71fc4260 100644 (file)
@@ -1,10 +1,13 @@
 
-#ifdef DEBUGSERIAL
-# include <hw/8250/8250.h>
+#ifndef _SRC_LIB_16_DBG
+#define _SRC_LIB_16_DBG
+
+# ifdef DEBUGSERIAL
+#  include <hw/8250/8250.h>
 
 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
 
index 9ac30e81504be1640a845aa48668105bf218da4c..beb6a3d33613de4a2f0ca633a2a9d0850ad798a5 100755 (executable)
@@ -32,6 +32,7 @@
 #include "src/lib/16_timer.h"\r
 #include "src/lib/bitmap.h"\r
 #include "src/lib/planar.h"\r
+#include "src/lib/16_dbg.h"\r
 \r
 #ifdef __DEBUG__\r
 //#define      __DEBUG_InputMgr__\r