mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #533 from tfussell/time-struct-warning
Fix time struct warning on linux
This commit is contained in:
commit
98e80133ae
|
@ -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…
Reference in New Issue
Block a user