aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2023-11-11 10:31:10 -0800
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-11-11 19:53:00 +0100
commite63e29ca91ba5fc1630634fbb9f064b9cce6cc1f (patch)
treef9195aa7aeaeeb96d73258376bfb79a7dfc97c8d
parent4558be0d8eb79d276c89392b9410e6edb649db95 (diff)
DSi_Camera: fix gcc-14 build issue
melonDS/src/DSi_Camera.cpp:190:23: error: 'clamp' is not a member of 'std' 190 | r1 = std::clamp(r1, 0, 255); g1 = std::clamp(g1, 0, 255); b1 = std::clamp(b1, 0, 255); | ^~~~~
-rw-r--r--src/DSi_Camera.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DSi_Camera.cpp b/src/DSi_Camera.cpp
index 7491629..2b259c5 100644
--- a/src/DSi_Camera.cpp
+++ b/src/DSi_Camera.cpp
@@ -16,6 +16,7 @@
with melonDS. If not, see http://www.gnu.org/licenses/.
*/
+#include <algorithm>
#include <stdio.h>
#include <string.h>
#include "DSi.h"