Skip to content

Commit

Permalink
Fix GCC build.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Apr 2, 2024
1 parent 07d7b2d commit 2fd68b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/hasher.inl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
*/

enum HashTypeTag {
#if defined(__GNUC__) && !defined(__clang__)
INT_TYPE_ID,
LONG_LONG_TYPE_ID,
#endif
INT32_T_TYPE_ID,
UINT32_T_TYPE_ID,
INT64_T_TYPE_ID,
Expand Down Expand Up @@ -77,6 +81,10 @@ private:
friend class HashTypeTagAdapter; \
};

#if defined(__GNUC__) && !defined(__clang__)
DECLARE_TYPE_ADAPTER(int, INT_TYPE_ID)
DECLARE_TYPE_ADAPTER(long long, LONG_LONG_TYPE_ID)
#endif
DECLARE_TYPE_ADAPTER(int32_t, INT32_T_TYPE_ID)
DECLARE_TYPE_ADAPTER(uint32_t, UINT32_T_TYPE_ID)
DECLARE_TYPE_ADAPTER(int64_t, INT64_T_TYPE_ID)
Expand Down Expand Up @@ -122,6 +130,10 @@ private:
friend class HashValueAdapter; \
};

#if defined(__GNUC__) && !defined(__clang__)
DECLARE_SIMPLE_VALUE_ADAPTER(int)
DECLARE_SIMPLE_VALUE_ADAPTER(long long)
#endif
DECLARE_SIMPLE_VALUE_ADAPTER(int32_t)
DECLARE_SIMPLE_VALUE_ADAPTER(uint32_t)
DECLARE_SIMPLE_VALUE_ADAPTER(int64_t)
Expand Down

0 comments on commit 2fd68b1

Please sign in to comment.