aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:21:35 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:21:35 +0200
commitebe31dc0d18d11d38060478a3c631c0edb693731 (patch)
tree8fce6545983bb6b2349d42ad1c8db1ed2a45705b
parent25f57f69c8f25abcea58804a3de97d1c36455ad8 (diff)
downloadgdbstub-ebe31dc0d18d11d38060478a3c631c0edb693731.tar.gz
Replaced NULL definition by the one provided by the standard
-rw-r--r--gdbstub.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdbstub.h b/gdbstub.h
index 3f981f3..e72635d 100644
--- a/gdbstub.h
+++ b/gdbstub.h
@@ -23,6 +23,8 @@
#ifndef _GDBSTUB_H_
#define _GDBSTUB_H_
+#include <stddef.h>
+
/* Enable debug statements (printf) */
#ifndef DEBUG
#define DEBUG 0
@@ -50,10 +52,6 @@
#define EOF (-1)
#endif
-#ifndef NULL
-#define NULL ((void*)0)
-#endif
-
#ifndef ASSERT
#if DEBUG
#define ASSERT(x) { \