https://git.reactos.org/?p=reactos.git;a=commitdiff;h=adee5ca255b7ed21f359c…
commit adee5ca255b7ed21f359ca8c1ca06bd44db90dcf
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Mon Jun 28 02:05:56 2021 +0200
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Mon Jun 28 02:05:56 2021 +0200
[COMCTL32] Addendum to last commit (#3674) CORE-17199
Keep that section like we had it to
support compilation on VS2010.
It does still work like that.
Addendum to commit 0.4.15-dev-2796-g e382b7bc3561a895d0a196a724865880b9a735f5
---
dll/win32/comctl32/datetime.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dll/win32/comctl32/datetime.c b/dll/win32/comctl32/datetime.c
index 71bb3d238b0..51e58fc71f1 100644
--- a/dll/win32/comctl32/datetime.c
+++ b/dll/win32/comctl32/datetime.c
@@ -130,8 +130,13 @@ static const WCHAR allowedformatchars[] = L"dhHmMstyX";
static const int maxrepetition [] = {4,2,2,2,4,2,2,4,-1};
/* valid date limits */
+#ifndef __REACTOS__
static const SYSTEMTIME max_allowed_date = { .wYear = 9999, .wMonth = 12, .wDayOfWeek =
0, .wDay = 31 };
static const SYSTEMTIME min_allowed_date = { .wYear = 1752, .wMonth = 9, .wDayOfWeek = 0,
.wDay = 14 };
+#else
+static const SYSTEMTIME max_allowed_date = { /*.wYear =*/ 9999, /*.wMonth =*/ 12,
/*.wDayOfWeek =*/ 0, /*.wDay =*/ 31 };
+static const SYSTEMTIME min_allowed_date = { /*.wYear =*/ 1752, /*.wMonth =*/ 9,
/*.wDayOfWeek =*/ 0, /*.wDay =*/ 14 };
+#endif
static DWORD
DATETIME_GetSystemTime (const DATETIME_INFO *infoPtr, SYSTEMTIME *systime)