diff options
author | Brad King <brad.king@kitware.com> | 2021-12-01 14:33:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-12-01 14:33:23 (GMT) |
commit | 9c3b97eb32c264eb1addc43bf0093e30e7f3ce7b (patch) | |
tree | 70b1d82872fd53bd25f93dd9e82fcff894776cbe /Source | |
parent | 2097f9a3a48b60d6da54ce9a8e9d0baac0e2ca14 (diff) | |
parent | 992e6d7c5dd3a8cdf330bea9cc988d8974f5e3d5 (diff) | |
download | CMake-9c3b97eb32c264eb1addc43bf0093e30e7f3ce7b.zip CMake-9c3b97eb32c264eb1addc43bf0093e30e7f3ce7b.tar.gz CMake-9c3b97eb32c264eb1addc43bf0093e30e7f3ce7b.tar.bz2 |
Merge topic 'mingw-strftime-crash'
992e6d7c5d mingw: fix calling convention for strftime()
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6762
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTimestamp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx index c8f5a4b..3826577 100644 --- a/Source/cmTimestamp.cxx +++ b/Source/cmTimestamp.cxx @@ -197,7 +197,7 @@ std::string cmTimestamp::AddTimestampComponent(char flag, #ifdef __MINGW32__ /* See a bug in MinGW: https://sourceforge.net/p/mingw-w64/bugs/793/. A work * around is to try to use strftime() from ucrtbase.dll. */ - using T = size_t(WINAPI*)(char*, size_t, const char*, const struct tm*); + using T = size_t(__cdecl*)(char*, size_t, const char*, const struct tm*); auto loadUcrtStrftime = []() -> T { auto handle = LoadLibraryExA("ucrtbase.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32); |