boost_has_getsystemtimeasfiletime.ipp 689 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright John Maddock 2011.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_HAS_GETSYSTEMTIMEASFILETIME
  7. // TITLE: GetSystemTimeAsFileTime
  8. // DESCRIPTION: The platform supports Win32 API GetSystemTimeAsFileTime.
  9. #include <windows.h>
  10. namespace boost_has_getsystemtimeasfiletime{
  11. void f()
  12. {
  13. // this is never called, it just has to compile:
  14. FILETIME ft;
  15. GetSystemTimeAsFileTime(&ft);
  16. }
  17. int test()
  18. {
  19. return 0;
  20. }
  21. }