mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix time struct warning on gcc
This commit is contained in:
parent
3c7122a78c
commit
a96c288036
@ -126,7 +126,7 @@ date date::today()
|
||||
|
||||
int date::weekday() const
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
#ifndef _MSC_VER
|
||||
std::tm tm{0, 0, 0, day, month - 1, year - 1900, 0, 0, 0, 0, nullptr};
|
||||
#else
|
||||
std::tm tm{0, 0, 0, day, month - 1, year - 1900, 0, 0, 0};
|
||||
|
Loading…
x
Reference in New Issue
Block a user