diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f30c74..fddca21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.30) -project(anm2ed CXX) +cmake_minimum_required(VERSION 3.27) +project(anm2ed C CXX) if (WIN32 AND DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" diff --git a/src/imgui/taskbar.cpp b/src/imgui/taskbar.cpp index 3b091f8..5ab4c5c 100644 --- a/src/imgui/taskbar.cpp +++ b/src/imgui/taskbar.cpp @@ -9,6 +9,16 @@ #include #include + +#ifdef _MSC_VER + #ifndef __attribute__ + #define __attribute__(x) + #endif + #ifndef restrict + #define restrict __restrict + #endif +#endif + #include #include "math_.h" diff --git a/src/resource/audio.cpp b/src/resource/audio.cpp index e871d79..d86db6a 100644 --- a/src/resource/audio.cpp +++ b/src/resource/audio.cpp @@ -6,6 +6,16 @@ #include #include #include + +#ifdef _MSC_VER + #ifndef __attribute__ + #define __attribute__(x) + #endif + #ifndef restrict + #define restrict __restrict + #endif +#endif + #include namespace anm2ed::resource