summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2012-08-07 08:49:09 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2012-08-07 08:49:09 +0100
commit5286555350c911f136a6b28b3bbca509249d1f94 (patch)
treec779c9442c33af44107c6ed86c1fb12b87dbe307 /handy.h
parentb795c6e90c03b712a3fecc424179ab600d71be8a (diff)
downloadperl-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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/handy.h b/handy.h
index db018d74cc..d4df8bdaee 100644
--- a/handy.h
+++ b/handy.h
@@ -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))