test wstring

This commit is contained in:
David Rose 2003-01-21 16:48:45 +00:00
parent 1e1aa28735
commit 36bec1e8d7
5 changed files with 22 additions and 2 deletions

View File

@ -79,6 +79,10 @@
// umask?
#define HAVE_OPEN_MASK 1
// Does <string> define the typedef wstring? Most do, but for some
// reason, versions of gcc before 3.0 didn't do this.
#define HAVE_WSTRING 1
// Do we have <new>?
#define HAVE_NEW

View File

@ -82,6 +82,10 @@
// umask? Versions of gcc prior to 3.2 had this.
#define HAVE_OPEN_MASK
// Does <string> define the typedef wstring? Most do, but for some
// reason, versions of gcc before 3.0 didn't do this.
#define HAVE_WSTRING 1
// Do we have <new>?
#define HAVE_NEW 1

View File

@ -82,6 +82,10 @@
// umask?
#define HAVE_OPEN_MASK
// Does <string> define the typedef wstring? Most do, but for some
// reason, versions of gcc before 3.0 didn't do this.
#define HAVE_WSTRING 1
// Do we have <new>?
#define HAVE_NEW 1

View File

@ -137,6 +137,9 @@ $[cdefine HAVE_NAMESPACE]
/* Define if fstream::open() accepts a third parameter for umask. */
$[cdefine HAVE_OPEN_MASK]
/* Define if the <string> header file defines wstring. */
$[cdefine HAVE_WSTRING]
/* Define if the C++ compiler supports the typename keyword. */
$[cdefine HAVE_TYPENAME]

View File

@ -80,10 +80,15 @@ using namespace std;
#define TYPENAME
#endif
#ifndef HAVE_WSTRING
// Some C++ libraries (gcc 2.95) don't define this.
typedef basic_string<wchar_t> wstring;
#endif
#ifndef HAVE_STREAMSIZE
// Some compilers (notably SGI) don't define this for us
// Some C++ libraries (Irix) don't define this.
typedef int streamsize;
#endif /* HAVE_STREAMSIZE */
#endif
#ifndef HAVE_IOS_TYPEDEFS
typedef int ios_openmode;