From dff16c3c1dc654d1ccb4628cce6e1105c14bbd2a Mon Sep 17 00:00:00 2001 From: Anuradha Dissanayake Date: Sat, 2 Feb 2013 02:22:06 +1300 Subject: [PATCH] Define nullptr for gcc < 4.6 --- plugins/buildingplan.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/buildingplan.cpp b/plugins/buildingplan.cpp index 24dbc4f33..cf512ebf0 100644 --- a/plugins/buildingplan.cpp +++ b/plugins/buildingplan.cpp @@ -58,7 +58,11 @@ using df::global::world; using df::global::enabler; DFHACK_PLUGIN("buildingplan"); -#define PLUGIN_VERSION 0.3 +#define PLUGIN_VERSION 0.4 + +#ifndef HAVE_NULLPTR +#define nullptr 0L +#endif struct MaterialDescriptor {