new.h does not exist in gcc 4.3

new.h does not exist in gcc 4.3. We should be using <new> instead. Indeed all but two occurrences of it use the standard form.

following is a patch to update the incorrect files from revision 214

-nick



Index: Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp
===================================================================
--- Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp (revision 214)
+++ Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp (working copy)
@@ -23,7 +23,7 @@
#include "../../Collision/b2TimeOfImpact.h"
#include "../../Common/b2BlockAllocator.h"

-#include <new.h>
+#include <new>
#include <string.h>

b2Contact* b2PolyAndCircleContact::Create(b2Fixture* fixtureA, b2Fixture* fixtureB, b2BlockAllocator* allocator)
Index: Source/Dynamics/Contacts/b2PolyAndEdgeContact.cpp
===================================================================
--- Source/Dynamics/Contacts/b2PolyAndEdgeContact.cpp (revision 214)
+++ Source/Dynamics/Contacts/b2PolyAndEdgeContact.cpp (working copy)
@@ -25,7 +25,7 @@
#include "../../Collision/b2TimeOfImpact.h"
#include "../../Common/b2BlockAllocator.h"

-#include <new.h>
+#include <new>
#include <string.h>

b2Contact* b2PolyAndEdgeContact::Create(b2Fixture* fixtureA, b2Fixture* fixtureB, b2BlockAllocator* allocator)

Original thread: https://box2d.org/forum/viewtopic.php?t=3242