summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscottc <scottc>2002-07-12 12:29:20 +0000
committerscottc <scottc>2002-07-12 12:29:20 +0000
commitf274360815694b1cd33c673e83b779c3a02ba9ec (patch)
treee8151beb027a994400cf57a67ed4652ef05ff2d2
parent7231611b731a7e3096d1411388b73f4c0c2380a7 (diff)
downloadgdb-f274360815694b1cd33c673e83b779c3a02ba9ec.tar.gz
* safe_memory.h: Include <new> rather than <new.h> for gcc 3.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/safe_memory.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3a107ec12c9..4acc9f21205 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-12 Conrad Scott <conrad.scott@dsl.pipex.com>
+
+ * safe_memory.h: Include <new> rather than <new.h> for gcc 3.
+
2002-07-11 Pavel Tsekov <ptsekov@gmx.net>
* fhandler_disk_file.cc (fhandler_disk_file::open): Don't
diff --git a/winsup/cygwin/safe_memory.h b/winsup/cygwin/safe_memory.h
index bcfc9452e09..f426bbb5e7f 100644
--- a/winsup/cygwin/safe_memory.h
+++ b/winsup/cygwin/safe_memory.h
@@ -22,7 +22,7 @@ details. */
* destructor and then free(3).
*/
-#include <new.h>
+#include <new>
#include <stdlib.h>
#define safe_new0(T) (new (malloc (sizeof (T))) T)