From c373a0a0141bbe146a9507f02b8515183748eb51 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 13 Nov 2023 11:22:58 +0400 Subject: [PATCH] Make windows.h header lighter. --- options_win.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/options_win.cmake b/options_win.cmake index 8037e8c..9f0a79f 100644 --- a/options_win.cmake +++ b/options_win.cmake @@ -7,9 +7,20 @@ target_compile_definitions(common_options INTERFACE WIN32 + WIN32_LEAN_AND_MEAN _WINDOWS _SCL_SECURE_NO_WARNINGS NOMINMAX + NOSERVICE + NOMCX + NOIME + NOSOUND + NOCOMM + NOKANJI + NORPC + NOPROXYSTUB + NOIMAGE + NOTAPE UNICODE _UNICODE )