diff --git a/src/d3d12/rt64_d3d12.h b/src/d3d12/rt64_d3d12.h index b4c326c..2bf9575 100644 --- a/src/d3d12/rt64_d3d12.h +++ b/src/d3d12/rt64_d3d12.h @@ -27,7 +27,7 @@ namespace RT64 { struct D3D12Texture; struct D3D12DescriptorHeapAllocator { - enum { + enum : uint32_t { INVALID_OFFSET = 0xFFFFFFFFU }; diff --git a/src/tools/file_to_c.cpp b/src/tools/file_to_c.cpp index 5226b66..709830b 100644 --- a/src/tools/file_to_c.cpp +++ b/src/tools/file_to_c.cpp @@ -55,6 +55,7 @@ int main(int argc, const char** argv) { // Write the C file with the array { std::ofstream output_c_file{output_c_path}; + output_c_file << "extern const char " << array_name << "[" << contents.size() << "];\n"; output_c_file << "const char " << array_name << "[" << contents.size() << "] = {"; for (char x : contents) {