diff options
Diffstat (limited to 'libstdc++-v3/testsuite/util/testsuite_hooks.cc')
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_hooks.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_hooks.cc b/libstdc++-v3/testsuite/util/testsuite_hooks.cc index b649e9ba7d7..6ea82f3d908 100644 --- a/libstdc++-v3/testsuite/util/testsuite_hooks.cc +++ b/libstdc++-v3/testsuite/util/testsuite_hooks.cc @@ -2,7 +2,8 @@ // Utility subroutines for the C++ library testsuite. // -// Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -36,10 +37,13 @@ #include <sys/time.h> #include <sys/resource.h> #endif + #include <list> #include <string> #include <stdexcept> +#include <cstddef> #include <clocale> +#include <cstdlib> #include <locale> #include <cxxabi.h> @@ -314,11 +318,11 @@ namespace __gnu_test } // For use in 22_locale/time_get and time_put. - tm + std::tm test_tm(int sec, int min, int hour, int mday, int mon, int year, int wday, int yday, int isdst) { - static tm tmp; + static std::tm tmp; tmp.tm_sec = sec; tmp.tm_min = min; tmp.tm_hour = hour; |