forked from boostorg/config
Modified the order with which tests are included by config_test.cpp so that MSVC6 doesn't choke any more.
[SVN r26540]
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Regression test Jamfile for boost configuration setup.
|
||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||
# This file was automatically generated on Sat Dec 04 10:44:19 2004
|
||||
# This file was automatically generated on Fri Dec 17 11:13:11 2004
|
||||
# by libs/config/tools/generate.cpp
|
||||
# Copyright John Maddock.
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
// This file was automatically generated on Sat Dec 04 10:44:19 2004
|
||||
// This file was automatically generated on Fri Dec 17 11:13:11 2004
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to the
|
||||
@ -19,146 +19,6 @@
|
||||
|
||||
int error_count = 0;
|
||||
|
||||
#ifdef BOOST_HAS_TWO_ARG_USE_FACET
|
||||
#include "boost_has_2arg_use_facet.ipp"
|
||||
#else
|
||||
namespace boost_has_two_arg_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_BETHREADS
|
||||
#include "boost_has_bethreads.ipp"
|
||||
#else
|
||||
namespace boost_has_bethreads = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_CLOCK_GETTIME
|
||||
#include "boost_has_clock_gettime.ipp"
|
||||
#else
|
||||
namespace boost_has_clock_gettime = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_DIRENT_H
|
||||
#include "boost_has_dirent_h.ipp"
|
||||
#else
|
||||
namespace boost_has_dirent_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_FTIME
|
||||
#include "boost_has_ftime.ipp"
|
||||
#else
|
||||
namespace boost_has_ftime = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_GETTIMEOFDAY
|
||||
#include "boost_has_gettimeofday.ipp"
|
||||
#else
|
||||
namespace boost_has_gettimeofday = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_HASH
|
||||
#include "boost_has_hash.ipp"
|
||||
#else
|
||||
namespace boost_has_hash = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_LONG_LONG
|
||||
#include "boost_has_long_long.ipp"
|
||||
#else
|
||||
namespace boost_has_long_long = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_MACRO_USE_FACET
|
||||
#include "boost_has_macro_use_facet.ipp"
|
||||
#else
|
||||
namespace boost_has_macro_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.ipp"
|
||||
#else
|
||||
namespace boost_has_ms_int64 = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NANOSLEEP
|
||||
#include "boost_has_nanosleep.ipp"
|
||||
#else
|
||||
namespace boost_has_nanosleep = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NL_TYPES_H
|
||||
#include "boost_has_nl_types_h.ipp"
|
||||
#else
|
||||
namespace boost_has_nl_types_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NRVO
|
||||
#include "boost_has_nrvo.ipp"
|
||||
#else
|
||||
namespace boost_has_nrvo = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PARTIAL_STD_ALLOCATOR
|
||||
#include "boost_has_part_alloc.ipp"
|
||||
#else
|
||||
namespace boost_has_partial_std_allocator = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREADS
|
||||
#include "boost_has_pthreads.ipp"
|
||||
#else
|
||||
namespace boost_has_pthreads = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_DELAY_NP
|
||||
#include "boost_has_pthread_delay_np.ipp"
|
||||
#else
|
||||
namespace boost_has_pthread_delay_np = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
#include "boost_has_pthread_ma_st.ipp"
|
||||
#else
|
||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_YIELD
|
||||
#include "boost_has_pthread_yield.ipp"
|
||||
#else
|
||||
namespace boost_has_pthread_yield = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SCHED_YIELD
|
||||
#include "boost_has_sched_yield.ipp"
|
||||
#else
|
||||
namespace boost_has_sched_yield = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SGI_TYPE_TRAITS
|
||||
#include "boost_has_sgi_type_traits.ipp"
|
||||
#else
|
||||
namespace boost_has_sgi_type_traits = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SIGACTION
|
||||
#include "boost_has_sigaction.ipp"
|
||||
#else
|
||||
namespace boost_has_sigaction = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SLIST
|
||||
#include "boost_has_slist.ipp"
|
||||
#else
|
||||
namespace boost_has_slist = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_STDINT_H
|
||||
#include "boost_has_stdint_h.ipp"
|
||||
#else
|
||||
namespace boost_has_stdint_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_STLP_USE_FACET
|
||||
#include "boost_has_stlp_use_facet.ipp"
|
||||
#else
|
||||
namespace boost_has_stlp_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_UNISTD_H
|
||||
#include "boost_has_unistd_h.ipp"
|
||||
#else
|
||||
namespace boost_has_unistd_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_MSVC6_MEMBER_TEMPLATES
|
||||
#include "boost_has_vc6_mem_templ.ipp"
|
||||
#else
|
||||
namespace boost_msvc6_member_templates = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_MSVC_STD_ITERATOR
|
||||
#include "boost_has_vc_iterator.ipp"
|
||||
#else
|
||||
namespace boost_msvc_std_iterator = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_WINTHREADS
|
||||
#include "boost_has_winthreads.ipp"
|
||||
#else
|
||||
namespace boost_has_winthreads = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
#include "boost_no_arg_dep_lookup.ipp"
|
||||
#else
|
||||
@ -435,6 +295,147 @@ namespace boost_no_void_returns = empty_boost;
|
||||
namespace boost_no_intrinsic_wchar_t = empty_boost;
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_HAS_TWO_ARG_USE_FACET
|
||||
#include "boost_has_2arg_use_facet.ipp"
|
||||
#else
|
||||
namespace boost_has_two_arg_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_BETHREADS
|
||||
#include "boost_has_bethreads.ipp"
|
||||
#else
|
||||
namespace boost_has_bethreads = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_CLOCK_GETTIME
|
||||
#include "boost_has_clock_gettime.ipp"
|
||||
#else
|
||||
namespace boost_has_clock_gettime = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_DIRENT_H
|
||||
#include "boost_has_dirent_h.ipp"
|
||||
#else
|
||||
namespace boost_has_dirent_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_FTIME
|
||||
#include "boost_has_ftime.ipp"
|
||||
#else
|
||||
namespace boost_has_ftime = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_GETTIMEOFDAY
|
||||
#include "boost_has_gettimeofday.ipp"
|
||||
#else
|
||||
namespace boost_has_gettimeofday = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_HASH
|
||||
#include "boost_has_hash.ipp"
|
||||
#else
|
||||
namespace boost_has_hash = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_LONG_LONG
|
||||
#include "boost_has_long_long.ipp"
|
||||
#else
|
||||
namespace boost_has_long_long = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_MACRO_USE_FACET
|
||||
#include "boost_has_macro_use_facet.ipp"
|
||||
#else
|
||||
namespace boost_has_macro_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.ipp"
|
||||
#else
|
||||
namespace boost_has_ms_int64 = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NANOSLEEP
|
||||
#include "boost_has_nanosleep.ipp"
|
||||
#else
|
||||
namespace boost_has_nanosleep = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NL_TYPES_H
|
||||
#include "boost_has_nl_types_h.ipp"
|
||||
#else
|
||||
namespace boost_has_nl_types_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_NRVO
|
||||
#include "boost_has_nrvo.ipp"
|
||||
#else
|
||||
namespace boost_has_nrvo = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PARTIAL_STD_ALLOCATOR
|
||||
#include "boost_has_part_alloc.ipp"
|
||||
#else
|
||||
namespace boost_has_partial_std_allocator = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREADS
|
||||
#include "boost_has_pthreads.ipp"
|
||||
#else
|
||||
namespace boost_has_pthreads = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_DELAY_NP
|
||||
#include "boost_has_pthread_delay_np.ipp"
|
||||
#else
|
||||
namespace boost_has_pthread_delay_np = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
#include "boost_has_pthread_ma_st.ipp"
|
||||
#else
|
||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_PTHREAD_YIELD
|
||||
#include "boost_has_pthread_yield.ipp"
|
||||
#else
|
||||
namespace boost_has_pthread_yield = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SCHED_YIELD
|
||||
#include "boost_has_sched_yield.ipp"
|
||||
#else
|
||||
namespace boost_has_sched_yield = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SGI_TYPE_TRAITS
|
||||
#include "boost_has_sgi_type_traits.ipp"
|
||||
#else
|
||||
namespace boost_has_sgi_type_traits = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SIGACTION
|
||||
#include "boost_has_sigaction.ipp"
|
||||
#else
|
||||
namespace boost_has_sigaction = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_SLIST
|
||||
#include "boost_has_slist.ipp"
|
||||
#else
|
||||
namespace boost_has_slist = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_STDINT_H
|
||||
#include "boost_has_stdint_h.ipp"
|
||||
#else
|
||||
namespace boost_has_stdint_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_STLP_USE_FACET
|
||||
#include "boost_has_stlp_use_facet.ipp"
|
||||
#else
|
||||
namespace boost_has_stlp_use_facet = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_UNISTD_H
|
||||
#include "boost_has_unistd_h.ipp"
|
||||
#else
|
||||
namespace boost_has_unistd_h = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_MSVC6_MEMBER_TEMPLATES
|
||||
#include "boost_has_vc6_mem_templ.ipp"
|
||||
#else
|
||||
namespace boost_msvc6_member_templates = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_MSVC_STD_ITERATOR
|
||||
#include "boost_has_vc_iterator.ipp"
|
||||
#else
|
||||
namespace boost_msvc_std_iterator = empty_boost;
|
||||
#endif
|
||||
#ifdef BOOST_HAS_WINTHREADS
|
||||
#include "boost_has_winthreads.ipp"
|
||||
#else
|
||||
namespace boost_has_winthreads = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
if(0 != boost_has_two_arg_use_facet::test())
|
||||
|
@ -32,6 +32,7 @@ std::string copyright(
|
||||
"// See http://www.boost.org/libs/config for the most recent version.");
|
||||
|
||||
std::stringstream config_test1;
|
||||
std::stringstream config_test1a;
|
||||
std::stringstream config_test2;
|
||||
std::stringstream jamfile;
|
||||
|
||||
@ -49,6 +50,7 @@ void write_config_test()
|
||||
"#include <boost/config.hpp>\n#include <iostream>\n#include \"test.hpp\"\n\n"
|
||||
"int error_count = 0;\n\n";
|
||||
ofs << config_test1.str() << std::endl;
|
||||
ofs << config_test1a.str() << std::endl;
|
||||
ofs << "int main( int, char *[] )\n{\n" << config_test2.str() << " return error_count;\n}\n\n";
|
||||
}
|
||||
|
||||
@ -174,11 +176,14 @@ void process_ipp_file(const fs::path& file, bool positive_test)
|
||||
write_test_file(positive_file, macro_name, namespace_name, file.leaf(), positive_test, true);
|
||||
write_test_file(negative_file, macro_name, namespace_name, file.leaf(), positive_test, false);
|
||||
|
||||
// always create config_test data:
|
||||
config_test1 << "#if";
|
||||
// always create config_test data,
|
||||
// positive and negative tests go to separate streams, because for some
|
||||
// reason some compilers choke unless we put them in a particular order...
|
||||
std::ostream* pout = positive_test ? &config_test1a : &config_test1;
|
||||
*pout << "#if";
|
||||
if(!positive_test)
|
||||
config_test1 << "n";
|
||||
config_test1 << "def " << macro_name
|
||||
*pout << "n";
|
||||
*pout << "def " << macro_name
|
||||
<< "\n#include \"" << file.leaf() << "\"\n#else\nnamespace "
|
||||
<< namespace_name << " = empty_boost;\n#endif\n";
|
||||
|
||||
|
Reference in New Issue
Block a user