include <new> if available

This commit is contained in:
David Rose
2002-05-01 22:46:29 +00:00
parent 4858ab72c4
commit 8ed64f1965
5 changed files with 16 additions and 0 deletions

View File

@@ -71,6 +71,9 @@
// Do we have a true stringstream class defined in <sstream>?
#define HAVE_SSTREAM
// Do we have <new>?
#define HAVE_NEW
// Do we have <io.h>?
#define HAVE_IO_H

View File

@@ -71,6 +71,9 @@
// Do we have a true stringstream class defined in <sstream>?
#define HAVE_SSTREAM
// Do we have <new>?
#define HAVE_NEW
// Do we have <io.h>?
#define HAVE_IO_H

View File

@@ -71,6 +71,9 @@
// Do we have a true stringstream class defined in <sstream>?
#define HAVE_SSTREAM 1
// Do we have <new>?
#define HAVE_NEW 1
// Do we have <io.h>?
#define HAVE_IO_H 1

View File

@@ -195,6 +195,9 @@ $[cdefine HAVE_MINMAX_H]
/* Define if you have the <sstream> header file. */
$[cdefine HAVE_SSTREAM]
/* Define if you have the <new> header file. */
$[cdefine HAVE_NEW]
/* Define if you have the <sys/types.h> header file. */
$[cdefine HAVE_SYS_TYPES]

View File

@@ -58,6 +58,10 @@ using namespace std;
#include "fakestringstream.h"
#endif
#ifdef HAVE_NEW
#include <new>
#endif
#include <string>
#ifdef HAVE_NAMESPACE