diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2012-08-07 08:49:09 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2012-08-07 08:49:09 +0100 |
commit | 5286555350c911f136a6b28b3bbca509249d1f94 (patch) | |
tree | c779c9442c33af44107c6ed86c1fb12b87dbe307 /handy.h | |
parent | b795c6e90c03b712a3fecc424179ab600d71be8a (diff) | |
download | perl-5286555350c911f136a6b28b3bbca509249d1f94.tar.gz |
VC++ has QUADKIND == QUAD_IS___INT64 so we might as well make use of it
- Use I64/UI64 suffixes rather than I64TYPE/U64TYPE casts for
INT64_C/UINT64_C, not just when _WIN64 is defined
- Use UI64 suffix rather than UL for U64_CONST
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -191,13 +191,13 @@ typedef U64TYPE U64; # define PeRl_INT64_C(c) CAT2(c,LL) # define PeRl_UINT64_C(c) CAT2(c,ULL) # else -# if LONGSIZE == 8 && QUADKIND == QUAD_IS_LONG -# define PeRl_INT64_C(c) CAT2(c,L) -# define PeRl_UINT64_C(c) CAT2(c,UL) +# if QUADKIND == QUAD_IS___INT64 +# define PeRl_INT64_C(c) CAT2(c,I64) +# define PeRl_UINT64_C(c) CAT2(c,UI64) # else -# if defined(_WIN64) && defined(_MSC_VER) -# define PeRl_INT64_C(c) CAT2(c,I64) -# define PeRl_UINT64_C(c) CAT2(c,UI64) +# if LONGSIZE == 8 && QUADKIND == QUAD_IS_LONG +# define PeRl_INT64_C(c) CAT2(c,L) +# define PeRl_UINT64_C(c) CAT2(c,UL) # else # define PeRl_INT64_C(c) ((I64TYPE)(c)) # define PeRl_UINT64_C(c) ((U64TYPE)(c)) |