From b5256ef70b00adadf8b124d816023d2e15fa40e3 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 15 Apr 2004 14:17:09 +0000 Subject: [PATCH] adjusted #ifdef's for Compaq C++ V6.5-040 for Compaq Tru64 UNIX [SVN r22636] --- include/boost/python/detail/config.hpp | 2 +- include/boost/python/detail/string_literal.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index 142f56c1..85c7a676 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -100,7 +100,7 @@ # define BOOST_PYTHON_EXPORT_CLASS_TEMPLATE(instantiation) struct ThIsTyPeNeVeRuSeD #endif -#if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) +#if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590040) // Replace broken Tru64/cxx offsetof macro # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \ ((size_t)__INTADDR__(&(((s_name *)0)->s_member))) diff --git a/include/boost/python/detail/string_literal.hpp b/include/boost/python/detail/string_literal.hpp index ee8cc0b6..a8e57bba 100644 --- a/include/boost/python/detail/string_literal.hpp +++ b/include/boost/python/detail/string_literal.hpp @@ -26,7 +26,7 @@ struct is_string_literal : mpl::true_ { }; -# if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) \ +# if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590040) \ || (defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730) // This compiler mistakenly gets the type of string literals as char* // instead of char[NN].