diff --git a/src/cdrom/cdrom_image_backend.c b/src/cdrom/cdrom_image_backend.c index 352044780..036a4ac4c 100644 --- a/src/cdrom/cdrom_image_backend.c +++ b/src/cdrom/cdrom_image_backend.c @@ -37,6 +37,8 @@ #include <86box/cdrom_image_backend.h> +#define CDROM_BCD(x) (((x) % 10) | (((x) / 10) << 4)) + #define MAX_LINE_LENGTH 512 #define MAX_FILENAME_LENGTH 256 #define CROSS_LEN 512 diff --git a/src/cdrom/cdrom_image_viso.c b/src/cdrom/cdrom_image_viso.c index 2b4dfcb76..f3b21db38 100644 --- a/src/cdrom/cdrom_image_viso.c +++ b/src/cdrom/cdrom_image_viso.c @@ -30,6 +30,7 @@ #include <86box/86box.h> #include <86box/bswap.h> #include <86box/cdrom_image_backend.h> +#include <86box/path.h> #include <86box/plat.h> #include <86box/plat_dir.h> #include <86box/version.h> @@ -830,7 +831,7 @@ viso_init(const char *dirname, int *error) break; entry->parent = dir; strcpy(entry->path, dir->path); - plat_path_slash(&entry->path[dir_path_len]); + path_slash(&entry->path[dir_path_len]); entry->basename = &entry->path[dir_path_len + 1]; strcpy(entry->basename, readdir_entry->d_name);