diff options
author | yxj-github-437 <2457369732@qq.com> | 2025-01-17 00:01:01 +0800 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-03-05 22:10:26 +0000 |
commit | a08a5bc4b3998bd4f8d0cca491b8ab6c93769e07 (patch) | |
tree | 0b3e9c86d6dc6c639e40b9ed3e372a9c2ead7591 | |
parent | c21d5a3591fd761872e18278e1cd8ec18e36d4cb (diff) | |
download | gcc-a08a5bc4b3998bd4f8d0cca491b8ab6c93769e07.zip gcc-a08a5bc4b3998bd4f8d0cca491b8ab6c93769e07.tar.gz gcc-a08a5bc4b3998bd4f8d0cca491b8ab6c93769e07.tar.bz2 |
libstdc++: fix possible undefined std::timespec in module std
I notice std::timespec and std::timespec_get are used in preprocessor
condition _GLIBCXX_HAVE_TIMESPEC_GET. So in module std, it should be
the same.
libstdc++-v3:
* src/c++23/std-clib.cc.in (timespec): Move within preprocessor
group guarded by _GLIBCXX_HAVE_TIMESPEC_GET.
-rw-r--r-- | libstdc++-v3/src/c++23/std-clib.cc.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++23/std-clib.cc.in b/libstdc++-v3/src/c++23/std-clib.cc.in index 6809ad2..10fc03e 100644 --- a/libstdc++-v3/src/c++23/std-clib.cc.in +++ b/libstdc++-v3/src/c++23/std-clib.cc.in @@ -585,9 +585,9 @@ export C_LIB_NAMESPACE using std::strftime; using std::time; using std::time_t; - using std::timespec; using std::tm; #ifdef _GLIBCXX_HAVE_TIMESPEC_GET + using std::timespec; using std::timespec_get; #endif } |