aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Borgerson <contact@mborgerson.com>2019-12-17 14:34:36 -0700
committerMatt Borgerson <contact@mborgerson.com>2019-12-17 14:34:36 -0700
commited95fd840dcf5cd22fda0c7fd4abd4561f58a265 (patch)
tree5305f011d219ab2a0b7acc0ffe04c31a4447dd1b
parentbdee9ec9eeb82633f98b4977432e8cf5cc529231 (diff)
downloadgdbstub-ed95fd840dcf5cd22fda0c7fd4abd4561f58a265.tar.gz
Define DEBUG=0 macro only when undefined
-rw-r--r--gdbstub.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdbstub.h b/gdbstub.h
index 53cf50b..9c7b505 100644
--- a/gdbstub.h
+++ b/gdbstub.h
@@ -24,7 +24,9 @@
#define _GDBSTUB_H_
/* Enable debug statements (printf) */
+#ifndef DEBUG
#define DEBUG 0
+#endif
/* Include platform specific definitions */
#include "gdbstub_sys.h"