[libc-commits] [libc] [libc][NFC] Cleanup time.h (PR #122027)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Tue Jan 7 17:34:00 PST 2025
================
@@ -30,7 +27,8 @@ static inline void initialize_tm_data(struct tm *tm_data, int year, int month,
.tm_mday = mday,
.tm_mon = month - 1, // tm_mon starts with 0 for Jan
// years since 1900
- .tm_year = year - TimeConstants::TIME_YEAR_BASE,
+ .tm_year =
+ year - LIBC_NAMESPACE::time_constants::TIME_YEAR_BASE,
----------------
SchrodingerZhu wrote:
No need to add the prefix? Then you can keep it in the same line.
https://github.com/llvm/llvm-project/pull/122027
More information about the libc-commits
mailing list