diff --git a/checks/Jamfile.v2 b/checks/Jamfile.v2 index 3ae69ce..09e1bd5 100644 --- a/checks/Jamfile.v2 +++ b/checks/Jamfile.v2 @@ -1,6 +1,6 @@ # # *** DO NOT EDIT THIS FILE BY HAND *** -# This file was automatically generated on Thu Aug 13 16:32:12 2015 +# This file was automatically generated on Fri Aug 28 11:16:53 2015 # by libs/config/tools/generate.cpp # Copyright John Maddock. # Use, modification and distribution are subject to the @@ -41,9 +41,6 @@ explicit dirent_h ; run-simple test_case.cpp : : : TEST_BOOST_HAS_EXPM1 : expm1 ; alias expm1 : expm1.output ; explicit expm1 ; -run-simple test_case.cpp : : : TEST_BOOST_HAS_FLOAT128 : float128 ; -alias float128 : float128.output ; -explicit float128 ; run-simple test_case.cpp : : : TEST_BOOST_HAS_FTIME : ftime ; alias ftime : ftime.output ; explicit ftime ; @@ -413,6 +410,9 @@ explicit cxx11_function_template_default_args ; run-simple test_case.cpp : : : TEST_BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS : function_type_specializations ; alias function_type_specializations : function_type_specializations.output ; explicit function_type_specializations ; +run-simple test_case.cpp : : : TEST_BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE : global_filesystem_namespace ; +alias global_filesystem_namespace : global_filesystem_namespace.output ; +explicit global_filesystem_namespace ; run-simple test_case.cpp : : : TEST_BOOST_NO_MS_INT64_NUMERIC_LIMITS : ms_int64_numeric_limits ; alias ms_int64_numeric_limits : ms_int64_numeric_limits.output ; explicit ms_int64_numeric_limits ; diff --git a/checks/test_case.cpp b/checks/test_case.cpp index 6193e82..004f886 100644 --- a/checks/test_case.cpp +++ b/checks/test_case.cpp @@ -1,4 +1,4 @@ -// This file was automatically generated on Thu Aug 13 16:32:12 2015 +// This file was automatically generated on Fri Aug 28 11:16:53 2015 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // Use, modification and distribution are subject to the @@ -29,10 +29,6 @@ namespace test = boost_has_dirent_h; # include "../test/boost_has_expm1.ipp" namespace test = boost_has_expm1; #endif -#ifdef TEST_BOOST_HAS_FLOAT128 -# include "../test/boost_has_float128.ipp" -namespace test = boost_has_float128; -#endif #ifdef TEST_BOOST_HAS_FTIME # include "../test/boost_has_ftime.ipp" namespace test = boost_has_ftime; @@ -525,6 +521,10 @@ namespace test = boost_no_cxx11_function_template_default_args; # include "../test/boost_no_function_type_spec.ipp" namespace test = boost_no_function_type_specializations; #endif +#ifdef TEST_BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +# include "../test/boost_no_global_filesystem_namespace.ipp" +namespace test = boost_no_global_filesystem_namespace; +#endif #ifdef TEST_BOOST_NO_MS_INT64_NUMERIC_LIMITS # include "../test/boost_no_i64_limits.ipp" namespace test = boost_no_ms_int64_numeric_limits; diff --git a/test/all/Jamfile.v2 b/test/all/Jamfile.v2 index 9d0b1e0..6fe2d9d 100644 --- a/test/all/Jamfile.v2 +++ b/test/all/Jamfile.v2 @@ -1,7 +1,7 @@ # # Regression test Jamfile for boost configuration setup. # *** DO NOT EDIT THIS FILE BY HAND *** -# This file was automatically generated on Thu Aug 13 16:32:12 2015 +# This file was automatically generated on Fri Aug 28 11:16:53 2015 # by libs/config/tools/generate.cpp # Copyright John Maddock. # Use, modification and distribution are subject to the @@ -37,9 +37,6 @@ test-suite "BOOST_HAS_DIRENT_H" : test-suite "BOOST_HAS_EXPM1" : [ run ../has_expm1_pass.cpp ] [ compile-fail ../has_expm1_fail.cpp ] ; -test-suite "BOOST_HAS_FLOAT128" : -[ run ../has_float128_pass.cpp ] -[ compile-fail ../has_float128_fail.cpp ] ; test-suite "BOOST_HAS_FTIME" : [ run ../has_ftime_pass.cpp ] [ compile-fail ../has_ftime_fail.cpp ] ; @@ -409,6 +406,9 @@ test-suite "BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS" : test-suite "BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS" : [ run ../no_function_type_spec_pass.cpp ] [ compile-fail ../no_function_type_spec_fail.cpp ] ; +test-suite "BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE" : +[ run ../no_global_filesystem_namespace_pass.cpp ] +[ compile-fail ../no_global_filesystem_namespace_fail.cpp ] ; test-suite "BOOST_NO_MS_INT64_NUMERIC_LIMITS" : [ run ../no_i64_limits_pass.cpp ] [ compile-fail ../no_i64_limits_fail.cpp ] ; diff --git a/test/boost_no_global_filesystem_namespace.ipp b/test/boost_no_global_filesystem_namespace.ipp new file mode 100644 index 0000000..b4bee7e --- /dev/null +++ b/test/boost_no_global_filesystem_namespace.ipp @@ -0,0 +1,26 @@ +// Copyright Nuxi, https://nuxi.nl/ 2015. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +// See http://www.boost.org/libs/config for most recent version. + +// MACRO: BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +// TITLE: global filesystem namespace support +// DESCRIPTION: The platform provides no support for accessing the +// global filesystem namespace. It may provide support +// for functions such as openat(), but not open(). + +#include + + +namespace boost_no_global_filesystem_namespace{ + +int test() +{ + FILE *fp = fopen("foobar", "r"); + if (fp) fclose(fp); + return 0; +} + +} diff --git a/test/config_info.cpp b/test/config_info.cpp index bb512ac..9c2d646 100644 --- a/test/config_info.cpp +++ b/test/config_info.cpp @@ -937,7 +937,6 @@ void print_boost_macros() PRINT_MACRO(BOOST_HAS_CLOCK_GETTIME); PRINT_MACRO(BOOST_HAS_DIRENT_H); PRINT_MACRO(BOOST_HAS_EXPM1); - PRINT_MACRO(BOOST_HAS_FLOAT128); PRINT_MACRO(BOOST_HAS_FTIME); PRINT_MACRO(BOOST_HAS_GETSYSTEMTIMEASFILETIME); PRINT_MACRO(BOOST_HAS_GETTIMEOFDAY); @@ -1074,6 +1073,7 @@ void print_boost_macros() PRINT_MACRO(BOOST_NO_FENV_H); PRINT_MACRO(BOOST_NO_FUNCTION_TEMPLATE_ORDERING); PRINT_MACRO(BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS); + PRINT_MACRO(BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE); PRINT_MACRO(BOOST_NO_INCLASS_MEMBER_INITIALIZATION); PRINT_MACRO(BOOST_NO_INTEGRAL_INT64_T); PRINT_MACRO(BOOST_NO_INTRINSIC_WCHAR_T); @@ -1127,6 +1127,10 @@ void print_boost_macros() + + + + // END GENERATED BLOCK PRINT_MACRO(BOOST_INTEL); diff --git a/test/config_test.cpp b/test/config_test.cpp index 18b3726..8603f87 100644 --- a/test/config_test.cpp +++ b/test/config_test.cpp @@ -1,4 +1,4 @@ -// This file was automatically generated on Thu Aug 13 16:32:12 2015 +// This file was automatically generated on Fri Aug 28 11:16:53 2015 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // Use, modification and distribution are subject to the @@ -402,6 +402,11 @@ namespace boost_no_cxx11_function_template_default_args = empty_boost; #else namespace boost_no_function_type_specializations = empty_boost; #endif +#ifndef BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +#include "boost_no_global_filesystem_namespace.ipp" +#else +namespace boost_no_global_filesystem_namespace = empty_boost; +#endif #ifndef BOOST_NO_MS_INT64_NUMERIC_LIMITS #include "boost_no_i64_limits.ipp" #else @@ -753,11 +758,6 @@ namespace boost_has_dirent_h = empty_boost; #else namespace boost_has_expm1 = empty_boost; #endif -#ifdef BOOST_HAS_FLOAT128 -#include "boost_has_float128.ipp" -#else -namespace boost_has_float128 = empty_boost; -#endif #ifdef BOOST_HAS_FTIME #include "boost_has_ftime.ipp" #else @@ -1021,11 +1021,6 @@ int main( int, char *[] ) std::cerr << "Failed test for BOOST_HAS_EXPM1 at: " << __FILE__ << ":" << __LINE__ << std::endl; ++error_count; } - if(0 != boost_has_float128::test()) - { - std::cerr << "Failed test for BOOST_HAS_FLOAT128 at: " << __FILE__ << ":" << __LINE__ << std::endl; - ++error_count; - } if(0 != boost_has_ftime::test()) { std::cerr << "Failed test for BOOST_HAS_FTIME at: " << __FILE__ << ":" << __LINE__ << std::endl; @@ -1641,6 +1636,11 @@ int main( int, char *[] ) std::cerr << "Failed test for BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl; ++error_count; } + if(0 != boost_no_global_filesystem_namespace::test()) + { + std::cerr << "Failed test for BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE at: " << __FILE__ << ":" << __LINE__ << std::endl; + ++error_count; + } if(0 != boost_no_ms_int64_numeric_limits::test()) { std::cerr << "Failed test for BOOST_NO_MS_INT64_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl; diff --git a/test/no_global_filesystem_namespace_fail.cpp b/test/no_global_filesystem_namespace_fail.cpp new file mode 100644 index 0000000..f60eef9 --- /dev/null +++ b/test/no_global_filesystem_namespace_fail.cpp @@ -0,0 +1,37 @@ +// This file was automatically generated on Fri Aug 28 10:51:28 2015 +// by libs/config/tools/generate.cpp +// Copyright John Maddock 2002-4. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +// See http://www.boost.org/libs/config for the most recent version.// +// Revision $Id$ +// + + +// Test file for macro BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +// This file should not compile, if it does then +// BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE should not be defined. +// See file boost_no_global_filesystem_namespace.ipp for details + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include "test.hpp" + +#ifdef BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +#include "boost_no_global_filesystem_namespace.ipp" +#else +#error "this file should not compile" +#endif + +int main( int, char *[] ) +{ + return boost_no_global_filesystem_namespace::test(); +} + diff --git a/test/no_global_filesystem_namespace_pass.cpp b/test/no_global_filesystem_namespace_pass.cpp new file mode 100644 index 0000000..b110c84 --- /dev/null +++ b/test/no_global_filesystem_namespace_pass.cpp @@ -0,0 +1,37 @@ +// This file was automatically generated on Fri Aug 28 10:51:28 2015 +// by libs/config/tools/generate.cpp +// Copyright John Maddock 2002-4. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +// See http://www.boost.org/libs/config for the most recent version.// +// Revision $Id$ +// + + +// Test file for macro BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +// This file should compile, if it does not then +// BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE should be defined. +// See file boost_no_global_filesystem_namespace.ipp for details + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include "test.hpp" + +#ifndef BOOST_NO_GLOBAL_FILESYSTEM_NAMESPACE +#include "boost_no_global_filesystem_namespace.ipp" +#else +namespace boost_no_global_filesystem_namespace = empty_boost; +#endif + +int main( int, char *[] ) +{ + return boost_no_global_filesystem_namespace::test(); +} +