Fixes for windows and size_t

This commit is contained in:
dcvz 2024-06-11 19:32:49 +02:00
parent 5f350b858e
commit 78bbf73eb1

View file

@ -2,19 +2,20 @@
#define __RECOMP_OVERLAYS_H__ #define __RECOMP_OVERLAYS_H__
#include <cstdint> #include <cstdint>
#include <cstddef>
#include "sections.h" #include "sections.h"
namespace recomp { namespace recomp {
namespace overlays { namespace overlays {
struct overlay_section_table_data_t { struct overlay_section_table_data_t {
SectionTableEntry* code_sections; SectionTableEntry* code_sections;
size_t num_code_sections; std::size_t num_code_sections;
size_t total_num_sections; std::size_t total_num_sections;
}; };
struct overlays_by_index_t { struct overlays_by_index_t {
int* table; int* table;
size_t len; std::size_t len;
}; };
void register_overlays(const overlay_section_table_data_t& sections, const overlays_by_index_t& overlays); void register_overlays(const overlay_section_table_data_t& sections, const overlays_by_index_t& overlays);