summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-01 14:33:03 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-01 14:33:23 (GMT)
commit9c3b97eb32c264eb1addc43bf0093e30e7f3ce7b (patch)
tree70b1d82872fd53bd25f93dd9e82fcff894776cbe /Source
parent2097f9a3a48b60d6da54ce9a8e9d0baac0e2ca14 (diff)
parent992e6d7c5dd3a8cdf330bea9cc988d8974f5e3d5 (diff)
downloadCMake-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.cxx2
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);