Add <algorithm> header to fix compilation issue on Arch Linux (#76)

The code was failing to compile on Arch Linux due to missing definitions
from the <algorithm> header. Including this header resolves the issue,
ensuring compatibility across different environments.
This commit is contained in:
2024-08-08 18:10:22 +02:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
/* */
/* ************************************************************************** */
#include <algorithm>
#include <core/application.h>
#define CHECK_WINDOW_PTR(win) \

View File

@@ -10,6 +10,7 @@
/* */
/* ************************************************************************** */
#include <algorithm>
#include <core/graphics.h>
namespace mlx

View File

@@ -3,10 +3,10 @@
/* ::: :::::::: */
/* vk_cmd_buffer.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* By: bonsthie <bonsthie@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/06 18:25:42 by maldavid #+# #+# */
/* Updated: 2024/01/07 01:25:50 by maldavid ### ########.fr */
/* Updated: 2024/08/08 17:46:00 by bonsthie ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,6 +17,7 @@
#include <volk.h>
#include <renderer/core/vk_fence.h>
#include <vector>
#include <algorithm>
namespace mlx
{