File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,14 @@ if (TV_USE_STATIC_RTL) # Implies MSVC
59
59
endif ()
60
60
61
61
if (WIN32 )
62
+ # Windows XP is the minimum supported version. Default is Windows Vista.
63
+ set (TV_WIN_VER "0x600" CACHE STRING "Turbo Vision: Windows version" )
62
64
target_compile_definitions (${PROJECT_NAME} PUBLIC
63
65
_CRT_NONSTDC_NO_WARNINGS
64
66
_CRT_SECURE_NO_WARNINGS
65
67
)
66
68
target_compile_definitions (${PROJECT_NAME} PRIVATE
67
- # Windows Vista is the minimum supported version.
68
- _WIN32_WINNT=0x0600
69
+ _WIN32_WINNT=${TV_WIN_VER}
69
70
)
70
71
endif ()
71
72
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ Win32ConsoleAdapter &Win32ConsoleAdapter::create() noexcept
81
81
// "A monospace bitmap font has all of these low-order bits clear".
82
82
return !(family & (TMPF_FIXED_PITCH | TMPF_VECTOR | TMPF_TRUETYPE | TMPF_DEVICE));
83
83
};
84
+ #if _WIN32_WINNT > 0x600
84
85
if ( GetCurrentConsoleFontEx (con.out (), FALSE , &fontInfo)
85
86
&& isBitmap (fontInfo.FontFamily ) )
86
87
{
@@ -101,6 +102,7 @@ Win32ConsoleAdapter &Win32ConsoleAdapter::create() noexcept
101
102
break ;
102
103
}
103
104
}
105
+ #endif
104
106
}
105
107
WinWidth::reset ();
106
108
auto &display = *new Win32Display (con, supportsVT);
Original file line number Diff line number Diff line change @@ -248,3 +248,9 @@ otstream::otstream( TTerminal *tt ) :
248
248
ostream(tt)
249
249
{
250
250
}
251
+
252
+ #if defined(_WIN32_WINNT) && (_WIN32_WINNT < 0x600)
253
+ #if !defined(__GNUC__) || (defined(__GNUC__) && (__GNUC__ <= 8))
254
+ #include " ttprvlns.cpp"
255
+ #endif
256
+ #endif
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ static TTimePoint systemTimeMs()
8
8
return THardwareInfo::getTickCount ()*55 ;
9
9
#elif defined( __BORLANDC__ )
10
10
return GetTickCount ();
11
+ #elif defined(_WIN32_WINNT) && (_WIN32_WINNT < 0x600)
12
+ return GetTickCount ();
11
13
#else
12
14
return GetTickCount64 ();
13
15
#endif
You can’t perform that action at this time.
0 commit comments