From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7934) id 8D2F0385DC3D; Thu, 11 Jan 2024 12:20:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D2F0385DC3D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704975625; bh=8jVfg6XFUA9ueohJG7Grd1du2f/AaiKNHeD7I3PSbFo=; h=From:To:Subject:Date:From; b=m2yGCqOefsUH1ufin4AWebk4VoI5OW8mz3qTWegdg82P6xuDrLDq4mrSkQOe+OWz5 7HbXelBFZ31GUFJS+7IJKU/RXVhkXitKM0SsJQWSoh1DlAwhZ55t/98ZSB2mlmslTd YzkBRzBHe2eaUTYTyllBWZ4wYF+w7TNhsHNRAc2o= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Ken Matsui To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-7136] libstdc++: Use using instead of typedef in opts-common.h X-Act-Checkin: gcc X-Git-Author: Ken Matsui X-Git-Refname: refs/heads/master X-Git-Oldrev: df147e2ee7199d33d66959c6509ce9c21072077f X-Git-Newrev: 65e2c932019b4e36d7c1d49952dc006fa7419a3d Message-Id: <20240111122025.8D2F0385DC3D@sourceware.org> Date: Thu, 11 Jan 2024 12:20:25 +0000 (GMT) List-Id: https://gcc.gnu.org/g:65e2c932019b4e36d7c1d49952dc006fa7419a3d commit r14-7136-g65e2c932019b4e36d7c1d49952dc006fa7419a3d Author: Ken Matsui Date: Thu Jan 11 00:23:32 2024 -0800 libstdc++: Use using instead of typedef in opts-common.h libstdc++-v3/ChangeLog: * src/filesystem/ops-common.h (stat_type): Use using. Signed-off-by: Ken Matsui Reviewed-by: Jonathan Wakely Diff: --- libstdc++-v3/src/filesystem/ops-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/src/filesystem/ops-common.h b/libstdc++-v3/src/filesystem/ops-common.h index d78a54754c2..d917fddbeb1 100644 --- a/libstdc++-v3/src/filesystem/ops-common.h +++ b/libstdc++-v3/src/filesystem/ops-common.h @@ -118,7 +118,7 @@ namespace __gnu_posix inline int close(int fd) { return ::_close(fd); } - typedef struct ::__stat64 stat_type; + using stat_type = struct ::__stat64; inline int stat(const wchar_t* path, stat_type* buffer) { return ::_wstat64(path, buffer); } @@ -184,7 +184,7 @@ namespace __gnu_posix using ::open; using ::close; # ifdef _GLIBCXX_HAVE_SYS_STAT_H - typedef struct ::stat stat_type; + using stat_type = struct ::stat; using ::stat; # ifdef _GLIBCXX_USE_LSTAT using ::lstat;