Skip to content
Closed
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
14 changes: 14 additions & 0 deletions perl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,13 @@ Use C<L</UINTMAX_C>> to get the largest type available on the platform.

=cut
*/
#ifndef INT16_C
# if INTSIZE >= 2
# define INT16_C(x) ((I16_TYPE)x)
# else
# define INT16_C(x) ((I16_TYPE)x##L)
# endif
#endif
#ifndef UINT16_C
# if INTSIZE >= 2
# define UINT16_C(x) ((U16_TYPE)x##U)
Expand All @@ -1462,6 +1469,13 @@ Use C<L</UINTMAX_C>> to get the largest type available on the platform.
# endif
#endif

#ifndef INT32_C
# if INTSIZE >= 4
# define INT32_C(x) ((I32_TYPE)x)
# else
# define INT32_C(x) ((I32_TYPE)x##L)
# endif
#endif
#ifndef UINT32_C
# if INTSIZE >= 4
# define UINT32_C(x) ((U32_TYPE)x##U)
Expand Down
Loading