diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1cf34c3201c0c0a3621c854bcbe372db337ff7c6..f659d91c8beec414176cb8aaa3b1c8729a9e4ea8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -454,6 +454,7 @@ if(APPLE)
     target_link_libraries (nheko ${NHEKO_LIBS} Qt5::MacExtras)
 elseif(WIN32)
     add_executable (nheko ${OS_BUNDLE} ${ICON_FILE} ${NHEKO_DEPS})
+    target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN)
     target_link_libraries (nheko ${NTDLIB} ${NHEKO_LIBS} Qt5::WinMain)
 else()
     add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS})