COMP: Need to choose between <new> and <new.h> based on whether standard headers are available.
This commit is contained in:
parent
ca2f4aa039
commit
920df088ab
|
@ -34,6 +34,7 @@
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# pragma warning (push, 1)
|
# pragma warning (push, 1)
|
||||||
# pragma warning (disable: 4702)
|
# pragma warning (disable: 4702)
|
||||||
|
# pragma warning (disable: 4995) /* Old streams are deprecated. */
|
||||||
# endif
|
# endif
|
||||||
# if @KWSYS_NAMESPACE@_IOS_USE_ANSI
|
# if @KWSYS_NAMESPACE@_IOS_USE_ANSI
|
||||||
# include <strstream>
|
# include <strstream>
|
||||||
|
@ -42,6 +43,11 @@
|
||||||
# elif @KWSYS_NAMESPACE@_IOS_USE_STRSTREA_H
|
# elif @KWSYS_NAMESPACE@_IOS_USE_STRSTREA_H
|
||||||
# include <strstrea.h>
|
# include <strstrea.h>
|
||||||
# endif
|
# endif
|
||||||
|
# if @KWSYS_NAMESPACE@_IOS_USE_ANSI
|
||||||
|
# include <new> // Need placement operator new.
|
||||||
|
# else
|
||||||
|
# include <new.h> // Need placement operator new.
|
||||||
|
# endif
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
# endif
|
# endif
|
||||||
|
@ -50,7 +56,6 @@
|
||||||
// ostringstream and istringstream classes.
|
// ostringstream and istringstream classes.
|
||||||
|
|
||||||
# include <@KWSYS_NAMESPACE@/stl/string>
|
# include <@KWSYS_NAMESPACE@/stl/string>
|
||||||
# include <new> // Need placement operator new.
|
|
||||||
|
|
||||||
namespace @KWSYS_NAMESPACE@_ios
|
namespace @KWSYS_NAMESPACE@_ios
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue