Skip to content

Commit

Permalink
fix: gcc13 compile failed (OpenAtomFoundation#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
4kangjc authored Jun 9, 2023
1 parent 3d9280b commit 8f7f056
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 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
2 changes: 1 addition & 1 deletion src/pstd/src/pstd_status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.

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

namespace pstd {
Expand Down
2 changes: 1 addition & 1 deletion src/pstd/src/pstd_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <cstdint>

#include <algorithm>

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 8f7f056

Please sign in to comment.