ITL fixes for MSVC 2003
"Bryan Leppard" <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <000c01c32088$f3bd81f0$1202a8c0@LEPPARD> |
Here is the change for ITL. Bryan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bryan Leppard Sent: May 15, 2003 10:17 AM To: [email protected] Subject: MTL: MSVC 2003 errors I just tried building MTL/ITL with the newly released Microsoft compiler. I noticed that the patches that I submitted to get MSVC7 to work are now broken. I expect I will have them fixed up in a couple of days. Regards, Bryan Leppard Neotechnology Consultants Ltd. _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
itl_config.h
(text/plain, 1.4 KB)
/* itl/itl_config.h. Generated automatically by configure. */
/* itl/itl_config.h.in. Generated automatically from configure.in by autoheader. */
#ifndef ITL_CONFIG_H
#define ITL_CONFIG_H
#define ITL_NO_SSTREAM
/* #undef ITL_NO_STD_ABS */
#define ITL_NO_STD_SQRT
#define ITL_NO_LIMITS 1
#define ITL_HAVE_CMATH 1
#if defined(_MSC_VER) && !defined(__MWERKS__)
# if ( _MSC_VER < 1300 )
# define _MSVCPP_ _MSC_VER
# elif( _MSC_VER < 1310 )
# define _MSVCPP7_ _MSC_VER
# else
# define _MSVCPP71_ _MSC_VER
# endif
#endif
#if defined(__sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 730)
# define ITL_NO_TEMPLATE
#elif defined(__GNUC__) && (__GNUC__ < 9)
# define ITL_NO_TEMPLATE
#elif defined(__KCC_VERSION) && (__KCC_VERSION < 3400)
# define ITL_NO_TEMPLATE
#elif defined(__MWERKS__)
# define ITL_NO_TEMPLATE
#endif
# ifndef __STL_DEFAULT_ALLOCATOR
# ifdef __STL_USE_OLD_SGI_ALLOCATOR
# define __STL_DEFAULT_ALLOCATOR(T) alloc
# else
# define __STL_DEFAULT_ALLOCATOR(T) allocator< T >
# endif
# endif
#if defined( _MSVCPP_ ) || defined( _MSVCPP7_ )
#define ITL_PARTIAL_SPEC 0
#else
#define ITL_PARTIAL_SPEC 1
#endif
#ifdef ITL_NO_TEMPLATE
#define ITL_TEMPLATE
#else
#define ITL_TEMPLATE template
#endif
#ifdef ITL_HAVE_CMATH
#include <cmath>
#endif
#ifdef ITL_NO_STD_SQRT
#include <math.h>
namespace std {
using ::sqrt;
}
#endif
#endif /* ITL_CONFIG_H */