Skip to content

Commit

Permalink
fixing limits in fake includes (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
bringlein committed Mar 16, 2021
1 parent 47043dd commit 1706a39
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion utils/fake_libc_include/_fake_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0

#define CHAR_MIN -128
#define CHAR_MAX 127
#define UCHAR_MAX 255
#define SHRT_MIN -32768
#define SHRT_MAX 32767
#define USHRT_MAX 65535
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define UINT_MAX 4294967295U
#define LONG_MIN -9223372036854775808L
#define LONG_MAX 9223372036854775807L
#define ULONG_MAX 18446744073709551615UL
#define RAND_MAX 32767
#define INT_MAX 32767

/* C99 inttypes.h defines */
#define PRId8 "d"
Expand Down

0 comments on commit 1706a39

Please sign in to comment.