From 49cd5ac4169b443fc5f802eefadf4b7b029693cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sat, 30 Jul 2022 19:54:16 +0200 Subject: [PATCH] code: small fixes --- CMakeLists.txt | 1 + code/vendors/sfd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24efbfb..960c6c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.0) +cmake_policy(SET CMP0057 NEW) project(eco2d) include(cmake/utils.cmake) diff --git a/code/vendors/sfd.c b/code/vendors/sfd.c index d84c401..1b9a0f1 100644 --- a/code/vendors/sfd.c +++ b/code/vendors/sfd.c @@ -89,7 +89,7 @@ static HWND find_main_window() { FindMainWindowInfo info = { .process_id = GetCurrentProcessId() }; - EnumWindows(find_main_window_callback, (LPARAM)&info); + EnumWindows((WNDENUMPROC)find_main_window_callback, (LPARAM)&info); return info.handle_root; }