Skip to content

Commit

Permalink
fix: gcc13 compile failed
Browse files Browse the repository at this point in the history
  • Loading branch information
4kangjc committed Jun 8, 2023
1 parent dc8678f commit 8426787
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/pika_data_distribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define PIKA_DATA_DISTRIBUTION_H_

#include <cstdint>
#include "pstd/include/pstd_status.h"
#include <string>

// polynomial reserved Crc32 magic num
const uint32_t IEEE_POLY = 0xedb88320;
Expand Down
2 changes: 2 additions & 0 deletions src/pika_data_distribution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "include/pika_data_distribution.h"

#include <cassert>

const std::string kTagBegin = "{";
const std::string kTagEnd = "}";

Expand Down
1 change: 1 addition & 0 deletions src/pstd/src/pstd_status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "pstd/include/pstd_status.h"
#include <cstdint>
#include <cstdio>
#include <cstdint>

namespace pstd {

Expand Down
1 change: 1 addition & 0 deletions src/pstd/src/pstd_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <sstream>
Expand Down
4 changes: 2 additions & 2 deletions src/storage/src/storage_murmur3.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

// Microsoft Visual Studio

namespace storage {

#if defined(_MSC_VER)

typedef unsigned char uint8_t;
Expand All @@ -31,6 +29,8 @@ typedef unsigned __int64 uint64_t;

#endif // !defined(_MSC_VER)

namespace storage {

#define FORCE_INLINE __attribute__((always_inline))

inline uint32_t rotl32(uint32_t x, uint8_t r) { return (x << r) | (x >> (32 - r)); }
Expand Down

0 comments on commit 8426787

Please sign in to comment.