Skip to content

Commit

Permalink
real-logic#451: Fix min/max macro conflicts on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nauhygon committed May 8, 2017
1 parent a6b3489 commit 98f7470
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sbe-tool/src/main/cpp/sbe/sbe.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ namespace sbe {
#define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif

#define SBE_NULLVALUE_INT8 std::numeric_limits<std::int8_t>::min()
#define SBE_NULLVALUE_INT16 std::numeric_limits<std::int16_t>::min()
#define SBE_NULLVALUE_INT32 std::numeric_limits<std::int32_t>::min()
#define SBE_NULLVALUE_INT64 std::numeric_limits<std::int64_t>::min()
#define SBE_NULLVALUE_UINT8 std::numeric_limits<std::uint8_t>::max()
#define SBE_NULLVALUE_UINT16 std::numeric_limits<std::uint16_t>::max()
#define SBE_NULLVALUE_UINT32 std::numeric_limits<std::uint32_t>::max()
#define SBE_NULLVALUE_UINT64 std::numeric_limits<std::uint64_t>::max()
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
#define SBE_NULLVALUE_INT16 (std::numeric_limits<std::int16_t>::min)()
#define SBE_NULLVALUE_INT32 (std::numeric_limits<std::int32_t>::min)()
#define SBE_NULLVALUE_INT64 (std::numeric_limits<std::int64_t>::min)()
#define SBE_NULLVALUE_UINT8 (std::numeric_limits<std::uint8_t>::max)()
#define SBE_NULLVALUE_UINT16 (std::numeric_limits<std::uint16_t>::max)()
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()

namespace MetaAttribute {

Expand Down

0 comments on commit 98f7470

Please sign in to comment.