Skip to content

Commit

Permalink
scanner: Add a fallback INT_MAX definition.
Browse files Browse the repository at this point in the history
Signed-off-by: Kang-Che Sung <[email protected]>
  • Loading branch information
Explorer09 authored and westes committed Mar 8, 2018
1 parent 1985bb3 commit ec4f23d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flexint.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#endif

#ifndef INT_MAX
#define INT_MAX ((int)(~0U)>>1)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
Expand Down

0 comments on commit ec4f23d

Please sign in to comment.