Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#451: Fix min/max macro conflicts on Windows #452

Merged
merged 1 commit into from
May 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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