aboutsummaryrefslogtreecommitdiff
path: root/libcpp/system.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-05-17 19:28:34 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-05-17 19:28:34 -0400
commitb2ff74575d7269d6f3a9a83b86e68d229cbc539f (patch)
tree67941a07b2fd39de7e20d799fcd8527e03749c2d /libcpp/system.h
parent7bbce9b50302959286381d9177818642bceaf301 (diff)
downloadgcc-b2ff74575d7269d6f3a9a83b86e68d229cbc539f.zip
gcc-b2ff74575d7269d6f3a9a83b86e68d229cbc539f.tar.gz
gcc-b2ff74575d7269d6f3a9a83b86e68d229cbc539f.tar.bz2
line-map.c (linemap_init): Use placement new.
* line-map.c (linemap_init): Use placement new. * system.h: #include <new>. From-SVN: r260343
Diffstat (limited to 'libcpp/system.h')
-rw-r--r--libcpp/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpp/system.h b/libcpp/system.h
index 719435d..76420e1 100644
--- a/libcpp/system.h
+++ b/libcpp/system.h
@@ -438,6 +438,10 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
/* Some compilers do not allow the use of unsigned char in bitfields. */
#define BOOL_BITFIELD unsigned int
+#ifdef __cplusplus
+#include <new>
+#endif
+
/* Poison identifiers we do not want to use. */
#if (GCC_VERSION >= 3000)
#undef calloc