From ff871511af79fd8fb7a09d3ed42220830e6ddcd6 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 21 Jul 2017 15:21:13 +0200 Subject: Windows: reduce size of MBR bootloader by removing unused functions in each build type. --- src/Boot/Windows/BootConsoleIo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Boot/Windows/BootConsoleIo.cpp') diff --git a/src/Boot/Windows/BootConsoleIo.cpp b/src/Boot/Windows/BootConsoleIo.cpp index 6a5a1595..b03098f0 100644 --- a/src/Boot/Windows/BootConsoleIo.cpp +++ b/src/Boot/Windows/BootConsoleIo.cpp @@ -19,17 +19,19 @@ static int ScreenOutputDisabled = 0; +#if defined(TC_TRACE_INT13) || !defined(TC_WINDOWS_BOOT_RESCUE_DISK_MODE) void DisableScreenOutput () { ++ScreenOutputDisabled; } +#endif - +#ifdef TC_TRACE_INT13 void EnableScreenOutput () { --ScreenOutputDisabled; } - +#endif void PrintChar (char c) { -- cgit v1.2.3