mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Document BOOST_HAS_GETSYSTEMTIMEASFILETIME, add test case, and change test for BOOST_HAS_FTIME.
Refs #2881. [SVN r73058]
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Acknowledgements</title>
|
<title>Acknowledgements</title>
|
||||||
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
||||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||||
<link rel="home" href="../index.html" title="Boost.Config">
|
<link rel="home" href="../index.html" title="Boost.Config">
|
||||||
<link rel="up" href="../index.html" title="Boost.Config">
|
<link rel="up" href="../index.html" title="Boost.Config">
|
||||||
<link rel="prev" href="rationale.html" title="Rationale">
|
<link rel="prev" href="rationale.html" title="Rationale">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Boost Macro Reference</title>
|
<title>Boost Macro Reference</title>
|
||||||
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
||||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||||
<link rel="home" href="../index.html" title="Boost.Config">
|
<link rel="home" href="../index.html" title="Boost.Config">
|
||||||
<link rel="up" href="../index.html" title="Boost.Config">
|
<link rel="up" href="../index.html" title="Boost.Config">
|
||||||
<link rel="prev" href="../index.html" title="Boost.Config">
|
<link rel="prev" href="../index.html" title="Boost.Config">
|
||||||
@ -1439,7 +1439,24 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
The platform has the Win32 API <code class="computeroutput"><span class="identifier">GetSystemTimeAsFileTime</span></code>.
|
The platform has the Win32 API type FTIME.
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<code class="computeroutput"><span class="identifier">BOOST_HAS_GETSYSTEMTIMEASFILETIME</span></code>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
Platform
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
The platform has the Win32 API GetSystemTimeAsFileTime.
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Guidelines for Boost Authors</title>
|
<title>Guidelines for Boost Authors</title>
|
||||||
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
||||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||||
<link rel="home" href="../index.html" title="Boost.Config">
|
<link rel="home" href="../index.html" title="Boost.Config">
|
||||||
<link rel="up" href="../index.html" title="Boost.Config">
|
<link rel="up" href="../index.html" title="Boost.Config">
|
||||||
<link rel="prev" href="boost_macro_reference.html" title="Boost Macro Reference">
|
<link rel="prev" href="boost_macro_reference.html" title="Boost Macro Reference">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Rationale</title>
|
<title>Rationale</title>
|
||||||
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
|
||||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||||
<link rel="home" href="../index.html" title="Boost.Config">
|
<link rel="home" href="../index.html" title="Boost.Config">
|
||||||
<link rel="up" href="../index.html" title="Boost.Config">
|
<link rel="up" href="../index.html" title="Boost.Config">
|
||||||
<link rel="prev" href="guidelines_for_boost_authors.html" title="Guidelines for Boost Authors">
|
<link rel="prev" href="guidelines_for_boost_authors.html" title="Guidelines for Boost Authors">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Boost.Config</title>
|
<title>Boost.Config</title>
|
||||||
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
|
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
|
||||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||||||
<link rel="home" href="index.html" title="Boost.Config">
|
<link rel="home" href="index.html" title="Boost.Config">
|
||||||
<link rel="next" href="boost_config/boost_macro_reference.html" title="Boost Macro Reference">
|
<link rel="next" href="boost_config/boost_macro_reference.html" title="Boost Macro Reference">
|
||||||
</head>
|
</head>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<div><p class="copyright">Copyright © 2001-2007 Beman Dawes, Vesa Karvonen, John
|
<div><p class="copyright">Copyright © 2001-2007 Beman Dawes, Vesa Karvonen, John
|
||||||
Maddock</p></div>
|
Maddock</p></div>
|
||||||
<div><div class="legalnotice">
|
<div><div class="legalnotice">
|
||||||
<a name="id830643"></a><p>
|
<a name="id910601"></a><p>
|
||||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||||
</p>
|
</p>
|
||||||
@ -947,7 +947,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||||
<td align="left"><p><small>Last revised: June 01, 2011 at 14:31:32 GMT</small></p></td>
|
<td align="left"><p><small>Last revised: July 13, 2011 at 18:00:55 GMT</small></p></td>
|
||||||
<td align="right"><div class="copyright-footer"></div></td>
|
<td align="right"><div class="copyright-footer"></div></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -348,7 +348,10 @@ The platform has the POSIX header `<dirent.h>`.
|
|||||||
The platform has the functions `expm1`, `expm1f` and `expm1l` in `<math.h>`
|
The platform has the functions `expm1`, `expm1f` and `expm1l` in `<math.h>`
|
||||||
]]
|
]]
|
||||||
[[`BOOST_HAS_FTIME`][Platform][
|
[[`BOOST_HAS_FTIME`][Platform][
|
||||||
The platform has the Win32 API `GetSystemTimeAsFileTime`.
|
The platform has the Win32 API type FTIME.
|
||||||
|
]]
|
||||||
|
[[`BOOST_HAS_GETSYSTEMTIMEASFILETIME`][Platform][
|
||||||
|
The platform has the Win32 API GetSystemTimeAsFileTime.
|
||||||
]]
|
]]
|
||||||
[[`BOOST_HAS_GETTIMEOFDAY`][Platform][
|
[[`BOOST_HAS_GETTIMEOFDAY`][Platform][
|
||||||
The platform has the POSIX API `gettimeofday`.
|
The platform has the POSIX API `gettimeofday`.
|
||||||
|
@ -55,6 +55,8 @@
|
|||||||
|
|
||||||
#ifdef _WIN32_WCE
|
#ifdef _WIN32_WCE
|
||||||
# define BOOST_NO_ANSI_APIS
|
# define BOOST_NO_ANSI_APIS
|
||||||
|
#else
|
||||||
|
# define BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef BOOST_HAS_PTHREADS
|
#ifndef BOOST_HAS_PTHREADS
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Regression test Jamfile for boost configuration setup.
|
# Regression test Jamfile for boost configuration setup.
|
||||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||||
# This file was automatically generated on Wed Jun 1 21:44:56 2011
|
# This file was automatically generated on Wed Jul 13 18:50:14 2011
|
||||||
# by libs/config/tools/generate.cpp
|
# by libs/config/tools/generate.cpp
|
||||||
# Copyright John Maddock.
|
# Copyright John Maddock.
|
||||||
# Use, modification and distribution are subject to the
|
# Use, modification and distribution are subject to the
|
||||||
@ -40,6 +40,9 @@ test-suite "BOOST_HAS_EXPM1" :
|
|||||||
test-suite "BOOST_HAS_FTIME" :
|
test-suite "BOOST_HAS_FTIME" :
|
||||||
[ run ../has_ftime_pass.cpp ]
|
[ run ../has_ftime_pass.cpp ]
|
||||||
[ compile-fail ../has_ftime_fail.cpp ] ;
|
[ compile-fail ../has_ftime_fail.cpp ] ;
|
||||||
|
test-suite "BOOST_HAS_GETSYSTEMTIMEASFILETIME" :
|
||||||
|
[ run ../has_getsystemtimeasfiletime_pass.cpp ]
|
||||||
|
[ compile-fail ../has_getsystemtimeasfiletime_fail.cpp ] ;
|
||||||
test-suite "BOOST_HAS_GETTIMEOFDAY" :
|
test-suite "BOOST_HAS_GETTIMEOFDAY" :
|
||||||
[ run ../has_gettimeofday_pass.cpp ]
|
[ run ../has_gettimeofday_pass.cpp ]
|
||||||
[ compile-fail ../has_gettimeofday_fail.cpp ] ;
|
[ compile-fail ../has_gettimeofday_fail.cpp ] ;
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
// See http://www.boost.org/libs/config for most recent version.
|
// See http://www.boost.org/libs/config for most recent version.
|
||||||
|
|
||||||
// MACRO: BOOST_HAS_FTIME
|
// MACRO: BOOST_HAS_FTIME
|
||||||
// TITLE: GetSystemTimeAsFileTime
|
// TITLE: The platform has FTIME.
|
||||||
// DESCRIPTION: The platform supports Win32 API GetSystemTimeAsFileTime.
|
// DESCRIPTION: The platform supports the Win32 API type FTIME.
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
@ -18,7 +18,6 @@ void f()
|
|||||||
{
|
{
|
||||||
// this is never called, it just has to compile:
|
// this is never called, it just has to compile:
|
||||||
FILETIME ft;
|
FILETIME ft;
|
||||||
GetSystemTimeAsFileTime(&ft);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int test()
|
int test()
|
||||||
|
30
test/boost_has_getsystemtimeasfiletime.ipp
Normal file
30
test/boost_has_getsystemtimeasfiletime.ipp
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
// (C) Copyright John Maddock 2011.
|
||||||
|
// 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 most recent version.
|
||||||
|
|
||||||
|
// MACRO: BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
|
// TITLE: GetSystemTimeAsFileTime
|
||||||
|
// DESCRIPTION: The platform supports Win32 API GetSystemTimeAsFileTime.
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace boost_has_getsystemtimeasfiletime{
|
||||||
|
|
||||||
|
void f()
|
||||||
|
{
|
||||||
|
// this is never called, it just has to compile:
|
||||||
|
FILETIME ft;
|
||||||
|
GetSystemTimeAsFileTime(&ft);
|
||||||
|
}
|
||||||
|
|
||||||
|
int test()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -40,7 +40,11 @@ int test()
|
|||||||
int i;
|
int i;
|
||||||
decltype(i) j;
|
decltype(i) j;
|
||||||
decltype(get_test_class()) k;
|
decltype(get_test_class()) k;
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
// Although the VC++ decltype is buggy, we none the less enable support,
|
||||||
|
// so don't test the bugs for now!
|
||||||
baz(get_test_class);
|
baz(get_test_class);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -917,6 +917,7 @@ void print_boost_macros()
|
|||||||
PRINT_MACRO(BOOST_HAS_DIRENT_H);
|
PRINT_MACRO(BOOST_HAS_DIRENT_H);
|
||||||
PRINT_MACRO(BOOST_HAS_EXPM1);
|
PRINT_MACRO(BOOST_HAS_EXPM1);
|
||||||
PRINT_MACRO(BOOST_HAS_FTIME);
|
PRINT_MACRO(BOOST_HAS_FTIME);
|
||||||
|
PRINT_MACRO(BOOST_HAS_GETSYSTEMTIMEASFILETIME);
|
||||||
PRINT_MACRO(BOOST_HAS_GETTIMEOFDAY);
|
PRINT_MACRO(BOOST_HAS_GETTIMEOFDAY);
|
||||||
PRINT_MACRO(BOOST_HAS_HASH);
|
PRINT_MACRO(BOOST_HAS_HASH);
|
||||||
PRINT_MACRO(BOOST_HAS_LOG1P);
|
PRINT_MACRO(BOOST_HAS_LOG1P);
|
||||||
@ -1084,6 +1085,7 @@ void print_boost_macros()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// END GENERATED BLOCK
|
// END GENERATED BLOCK
|
||||||
|
|
||||||
PRINT_MACRO(BOOST_INTEL);
|
PRINT_MACRO(BOOST_INTEL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// This file was automatically generated on Wed Jun 1 21:44:56 2011
|
// This file was automatically generated on Wed Jul 13 18:50:14 2011
|
||||||
// by libs/config/tools/generate.cpp
|
// by libs/config/tools/generate.cpp
|
||||||
// Copyright John Maddock 2002-4.
|
// Copyright John Maddock 2002-4.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
@ -633,6 +633,11 @@ namespace boost_has_expm1 = empty_boost;
|
|||||||
#else
|
#else
|
||||||
namespace boost_has_ftime = empty_boost;
|
namespace boost_has_ftime = empty_boost;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
|
#include "boost_has_getsystemtimeasfiletime.ipp"
|
||||||
|
#else
|
||||||
|
namespace boost_has_getsystemtimeasfiletime = empty_boost;
|
||||||
|
#endif
|
||||||
#ifdef BOOST_HAS_GETTIMEOFDAY
|
#ifdef BOOST_HAS_GETTIMEOFDAY
|
||||||
#include "boost_has_gettimeofday.ipp"
|
#include "boost_has_gettimeofday.ipp"
|
||||||
#else
|
#else
|
||||||
@ -886,6 +891,11 @@ int main( int, char *[] )
|
|||||||
std::cerr << "Failed test for BOOST_HAS_FTIME at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_HAS_FTIME at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
++error_count;
|
++error_count;
|
||||||
}
|
}
|
||||||
|
if(0 != boost_has_getsystemtimeasfiletime::test())
|
||||||
|
{
|
||||||
|
std::cerr << "Failed test for BOOST_HAS_GETSYSTEMTIMEASFILETIME at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
++error_count;
|
||||||
|
}
|
||||||
if(0 != boost_has_gettimeofday::test())
|
if(0 != boost_has_gettimeofday::test())
|
||||||
{
|
{
|
||||||
std::cerr << "Failed test for BOOST_HAS_GETTIMEOFDAY at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_HAS_GETTIMEOFDAY at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
37
test/has_getsystemtimeasfiletime_fail.cpp
Normal file
37
test/has_getsystemtimeasfiletime_fail.cpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
// This file was automatically generated on Wed Jul 13 18:50:13 2011
|
||||||
|
// 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: generate.cpp 72327 2011-06-01 14:51:03Z eric_niebler $
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
// Test file for macro BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
|
// This file should not compile, if it does then
|
||||||
|
// BOOST_HAS_GETSYSTEMTIMEASFILETIME should be defined.
|
||||||
|
// See file boost_has_getsystemtimeasfiletime.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 <boost/config.hpp>
|
||||||
|
#include "test.hpp"
|
||||||
|
|
||||||
|
#ifndef BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
|
#include "boost_has_getsystemtimeasfiletime.ipp"
|
||||||
|
#else
|
||||||
|
#error "this file should not compile"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main( int, char *[] )
|
||||||
|
{
|
||||||
|
return boost_has_getsystemtimeasfiletime::test();
|
||||||
|
}
|
||||||
|
|
37
test/has_getsystemtimeasfiletime_pass.cpp
Normal file
37
test/has_getsystemtimeasfiletime_pass.cpp
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
// This file was automatically generated on Wed Jul 13 18:50:13 2011
|
||||||
|
// 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: generate.cpp 72327 2011-06-01 14:51:03Z eric_niebler $
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
// Test file for macro BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
|
// This file should compile, if it does not then
|
||||||
|
// BOOST_HAS_GETSYSTEMTIMEASFILETIME should not be defined.
|
||||||
|
// See file boost_has_getsystemtimeasfiletime.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 <boost/config.hpp>
|
||||||
|
#include "test.hpp"
|
||||||
|
|
||||||
|
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME
|
||||||
|
#include "boost_has_getsystemtimeasfiletime.ipp"
|
||||||
|
#else
|
||||||
|
namespace boost_has_getsystemtimeasfiletime = empty_boost;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main( int, char *[] )
|
||||||
|
{
|
||||||
|
return boost_has_getsystemtimeasfiletime::test();
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user