Skip to content

Commit

Permalink
Merge pull request #15 from Laupetin/fix/g++13-build
Browse files Browse the repository at this point in the history
Fix build with g++13
  • Loading branch information
Laupetin authored Oct 1, 2023
2 parents 98528db + dd56a57 commit cb4f23c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Common/StateMap/StateMapLayout.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "StateMapLayout.h"

#include <algorithm>
#include <cassert>

using namespace state_map;
Expand Down
2 changes: 1 addition & 1 deletion src/Common/StateMap/StateMapLayout.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once

#include <cstddef>
#include <string>
#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion src/ObjCommon/StructuredDataDef/CommonStructuredDataEnum.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once

#include <cstdint>
#include <string>
#include <vector>

Expand Down
4 changes: 4 additions & 0 deletions src/RawTemplater/RawTemplater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class RawTemplater::Impl

if (!m_args.m_build_log_file.empty())
{
fs::path p = fs::path(m_args.m_build_log_file).parent_path();
if (!p.empty())
fs::create_directories(p);

m_build_log_file = std::ofstream(m_args.m_build_log_file, std::ios::out | std::ios::binary);
if (!m_build_log_file.is_open())
{
Expand Down
1 change: 1 addition & 0 deletions src/ZoneCommon/Zone/XBlock.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include <cstdint>
#include <string>

class XBlock
Expand Down
2 changes: 1 addition & 1 deletion src/ZoneCommon/Zone/XChunk/AbstractSalsa20Processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
AbstractSalsa20Processor::AbstractSalsa20Processor(const int streamCount, std::string& zoneName, const uint8_t* salsa20Key, size_t keySize)
: m_stream_count(streamCount),
m_stream_contexts(std::make_unique<StreamContext[]>(streamCount)),
m_block_hashes(std::make_unique<uint8_t[]>(BLOCK_HASHES_COUNT * streamCount * SHA1_HASH_SIZE)),
m_stream_block_indices(std::make_unique<unsigned int[]>(streamCount))
{
m_block_hashes = std::make_unique<uint8_t[]>(BLOCK_HASHES_COUNT * streamCount * SHA1_HASH_SIZE);
InitStreams(zoneName, salsa20Key, keySize);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include <cstdint>
#include "LoadingException.h"

class InvalidXBlockSizeException final : public LoadingException
Expand Down

0 comments on commit cb4f23c

Please sign in to comment.