this might work for libxm

This commit is contained in:
2025-11-11 18:45:03 -05:00
parent bff73c8936
commit a01b5ec4eb
3 changed files with 22 additions and 2 deletions

View File

@@ -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"

View File

@@ -9,6 +9,16 @@
#include <vector>
#include <imgui/imgui.h>
#ifdef _MSC_VER
#ifndef __attribute__
#define __attribute__(x)
#endif
#ifndef restrict
#define restrict __restrict
#endif
#endif
#include <xm.h>
#include "math_.h"

View File

@@ -6,6 +6,16 @@
#include <memory>
#include <utility>
#include <vector>
#ifdef _MSC_VER
#ifndef __attribute__
#define __attribute__(x)
#endif
#ifndef restrict
#define restrict __restrict
#endif
#endif
#include <xm.h>
namespace anm2ed::resource