SDL: Revert "cmake: don't add -mwindows to link flags in sdl2.pc"

From fc2497b109f6d38a0e55f9af92162b9a90b36fcf Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 23 Jul 2022 18:05:35 +0200
Subject: [PATCH] Revert "cmake: don't add -mwindows to link flags in sdl2.pc"

This reverts commit d211aaddc1edaad0e7d461d6837f3f1d2f9f4b41.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 64081de7e69..27cecf1eca6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1895,7 +1895,7 @@ elseif(WINDOWS)
       list(APPEND SDL_CFLAGS "-Dmain=SDL_main")
       list(INSERT SDL_LIBS 0 "-lSDL2main")
     endif(NOT SDL2_DISABLE_SDL2MAIN)
-    list(INSERT SDL_LIBS 0 "-lmingw32")
+    list(INSERT SDL_LIBS 0 "-lmingw32" "-mwindows")
   endif()
 
 elseif(APPLE)