Skip to content

Commit 5a09ebb

Browse files
authored
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.
2 parents 25d86ec + 8370ae8 commit 5a09ebb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/core/application.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/* */
1111
/* ************************************************************************** */
1212

13+
#include <algorithm>
1314
#include <core/application.h>
1415

1516
#define CHECK_WINDOW_PTR(win) \

src/core/graphics.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/* */
1111
/* ************************************************************************** */
1212

13+
#include <algorithm>
1314
#include <core/graphics.h>
1415

1516
namespace mlx

src/renderer/command/vk_cmd_buffer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/* ::: :::::::: */
44
/* vk_cmd_buffer.h :+: :+: :+: */
55
/* +:+ +:+ +:+ */
6-
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
6+
/* By: bonsthie <bonsthie@42angouleme.fr> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2022/10/06 18:25:42 by maldavid #+# #+# */
9-
/* Updated: 2024/01/07 01:25:50 by maldavid ### ########.fr */
9+
/* Updated: 2024/08/08 17:46:00 by bonsthie ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -17,6 +17,7 @@
1717
#include <volk.h>
1818
#include <renderer/core/vk_fence.h>
1919
#include <vector>
20+
#include <algorithm>
2021

2122
namespace mlx
2223
{

0 commit comments

Comments
 (0)