Skip to content

Commit 7693958

Browse files
committed
[libretro] Fix dingus build
1 parent 0942fd3 commit 7693958

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/cdrom_media.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ u32 CdRomMedia::SeekTime(u32 start_lba, u32 end_lba)
176176
{
177177
u32 start_index = SeekFindGroup(start_lba);
178178
u32 target_index = SeekFindGroup(end_lba);
179-
u32 lba_difference = (u32)std::abs((int)end_lba - (int)start_lba);
179+
u32 lba_difference = (u32)abs((int)end_lba - (int)start_lba);
180180
double track_difference = 0.0;
181181

182182
// Now we find the track difference

src/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#ifndef COMMON_H
2121
#define COMMON_H
2222

23+
#include <stdlib.h>
2324
#include <string>
2425
#include <string.h>
2526
#include <time.h>

0 commit comments

Comments
 (0)