From ec57e315a3d370910925c67e21482c1cf46ecfbd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 20 Jun 2011 21:22:58 +0000 Subject: Minor tweak, NULL is defined in extratypes.h as per C++ regs if it's not already defined. --- src/atom.h | 1 + src/extratypes.h | 4 ++++ src/stack.h | 1 + 3 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/atom.h b/src/atom.h index 7c8a166..fd88f2d 100644 --- a/src/atom.h +++ b/src/atom.h @@ -10,6 +10,7 @@ #include #include +#include "bu/config.h" #include "bu/exceptionbase.h" namespace Bu diff --git a/src/extratypes.h b/src/extratypes.h index 0dd92db..656cd6d 100644 --- a/src/extratypes.h +++ b/src/extratypes.h @@ -12,6 +12,10 @@ #include +#ifndef NULL +#define NULL 0 +#endif + namespace Bu { #ifdef USE_64BIT_IO diff --git a/src/stack.h b/src/stack.h index a6ea1b9..0d1ed3c 100644 --- a/src/stack.h +++ b/src/stack.h @@ -9,6 +9,7 @@ #define BU_STACK_H #include +#include "bu/config.h" namespace Bu { -- cgit v1.2.3