make TYPENAME switchable

This commit is contained in:
David Rose 2002-11-25 21:49:04 +00:00
parent eb6aa8c0d8
commit 8624205412
5 changed files with 16 additions and 0 deletions

View File

@ -20,6 +20,9 @@
// Does the C++ compiler support ios::binary?
#define HAVE_IOS_BINARY
// How about the typename keyword?
#define HAVE_TYPENAME 1
// Will the compiler avoid inserting extra bytes in structs between a
// base struct and its derived structs? It is safe to define this
// false if you don't know, but if you know that you can get away with

View File

@ -20,6 +20,9 @@
// Does the C++ compiler support ios::binary?
#define HAVE_IOS_BINARY 1
// How about the typename keyword?
#define HAVE_TYPENAME 1
// Will the compiler avoid inserting extra bytes in structs between a
// base struct and its derived structs? It is safe to define this
// false if you don't know, but if you know that you can get away with

View File

@ -20,6 +20,9 @@
// Does the C++ compiler support ios::binary?
#define HAVE_IOS_BINARY 1
// How about the typename keyword?
#define HAVE_TYPENAME 1
// Will the compiler avoid inserting extra bytes in structs between a
// base struct and its derived structs? It is safe to define this
// false if you don't know, but if you know that you can get away with

View File

@ -137,6 +137,9 @@ $[cdefine HAVE_NAMESPACE]
/* Define if the C++ iostream library supports ios::binary. */
$[cdefine HAVE_IOS_BINARY]
/* Define if the C++ compiler supports the typename keyword. */
$[cdefine HAVE_TYPENAME]
/* Define if we can trust the compiler not to insert extra bytes in
structs between base structs and derived structs. */
$[cdefine SIMPLE_STRUCT_POINTERS]

View File

@ -68,7 +68,11 @@ using namespace std;
using namespace std;
#endif
#ifdef HAVE_TYPENAME
#define TYPENAME typename
#else
#define TYPENAME
#endif
#if defined(WIN32_VC) && defined(FORCE_INLINING)