Added new config macro BOOST_HAS_MS_INT64 to detect presence of __int64 data type.

Modified boost source to use BOOST_HAS_LONG_LONG and BOOST_HAS_MS_INT64
   where appropriate to do so.


[SVN r13714]
This commit is contained in:
John Maddock
2002-05-07 11:24:29 +00:00
parent 6b5a580456
commit 9e02db296c
12 changed files with 1091 additions and 375 deletions
+29
View File
@@ -0,0 +1,29 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_MS_INT64
// TITLE: __int64
// DESCRIPTION: The platform supports Microsoft style __int64.
#include <cstdlib>
namespace boost_has_ms_int64{
int test()
{
__int64 lli = 0i64;
unsigned __int64 ulli = 0ui64;
(void)lli;
(void)ulli;
return 0;
}
}
+2
View File
@@ -829,6 +829,7 @@ void print_boost_macros()
PRINT_MACRO(BOOST_HAS_HASH);
PRINT_MACRO(BOOST_HAS_LONG_LONG);
PRINT_MACRO(BOOST_HAS_MACRO_USE_FACET);
PRINT_MACRO(BOOST_HAS_MS_INT64);
PRINT_MACRO(BOOST_HAS_NANOSLEEP);
PRINT_MACRO(BOOST_HAS_NL_TYPES_H);
PRINT_MACRO(BOOST_HAS_PTHREAD_DELAY_NP);
@@ -884,6 +885,7 @@ void print_boost_macros()
PRINT_MACRO(BOOST_NO_STD_WSTRING);
PRINT_MACRO(BOOST_NO_STDC_NAMESPACE);
PRINT_MACRO(BOOST_NO_STRINGSTREAM);
PRINT_MACRO(BOOST_NO_SWPRINTF);
PRINT_MACRO(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION);
PRINT_MACRO(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS);
PRINT_MACRO(BOOST_DISABLE_THREADS);
+2 -1
View File
@@ -10,7 +10,7 @@
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_*.cxx on
// Fri Feb 8 11:29:25 2002
// Mon May 6 12:58:50 BST 2002
#include <boost/config.hpp>
#define BOOST_INCLUDE_MAIN
@@ -400,3 +400,4 @@ int test_main( int, char *[] )
BOOST_TEST(0 == boost_has_two_arg_use_facet::test());
return 0;
}
+36
View File
@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_MS_INT64
// This file should not compile, if it does then
// BOOST_HAS_MS_INT64 may be defined.
// see boost_has_ms_int64.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_ms_int64.cxx on
// Mon May 6 12:26:03 2002
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_MS_INT64
#include "boost_has_ms_int64.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_ms_int64::test();
}
+36
View File
@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_MS_INT64
// This file should compile, if it does not then
// BOOST_HAS_MS_INT64 should not be defined.
// see boost_has_ms_int64.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_ms_int64.cxx on
// Mon May 6 12:26:03 2002
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_MS_INT64
#include "boost_has_ms_int64.cxx"
#else
namespace boost_has_ms_int64 = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_ms_int64::test();
}
+2
View File
@@ -101,6 +101,8 @@ run libs/config/test/has_long_long_pass.cpp
link-fail libs/config/test/has_long_long_fail.cpp
run libs/config/test/has_macro_use_facet_pass.cpp
link-fail libs/config/test/has_macro_use_facet_fail.cpp
run libs/config/test/has_ms_int64_pass.cpp
link-fail libs/config/test/has_ms_int64_fail.cpp
run libs/config/test/has_nanosleep_pass.cpp
link-fail libs/config/test/has_nanosleep_fail.cpp
run libs/config/test/has_nl_types_h_pass.cpp