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);
      |                       ^~~~~
This commit is contained in:
orbea 2023-11-11 10:31:10 -08:00 committed by Nadia Holmquist Pedersen
parent 4558be0d8e
commit e63e29ca91
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
with melonDS. If not, see http://www.gnu.org/licenses/. with melonDS. If not, see http://www.gnu.org/licenses/.
*/ */
#include <algorithm>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "DSi.h" #include "DSi.h"