Fix unversioned VC++ checks

[SVN r14436]
This commit is contained in:
Dave Abrahams
2002-07-13 12:26:19 +00:00
parent 873f5745a6
commit 99b01de780
2 changed files with 12 additions and 1 deletions

View File

@ -22,6 +22,16 @@
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
#endif
//
// STLPort's <limits> header #defines ULONGLONG_MAX in this case,
// which can cause us confusion later if we don't accept its word that
// long long is available. Note that #include <limits.h> may not be
// sufficient to see the definition.
//
#ifdef _STLP_LONG_LONG
# define BOOST_HAS_LONG_LONG
#endif
//
// If STLport thinks that there is no partial specialisation, then there is no
// std::iterator traits:

View File

@ -28,7 +28,8 @@
// no namespace issues from this.
//
#include <limits.h>
# if !defined(BOOST_MSVC) && !defined(__BORLANDC__) \
# if !defined(BOOST_HAS_LONG_LONG) \
&& !(defined(BOOST_MSVC) && BOOST_MSVC <=1300) && !defined(__BORLANDC__) \
&& (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))
# define BOOST_HAS_LONG_LONG
#endif