diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-15 02:17:06 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-15 02:17:06 +0000 |
commit | e8c951909ff48204642537ff8810d8cd16a0dee9 (patch) | |
tree | 8b3e817f970e17938eadad89a3bd7d1c57af9b73 /handy.h | |
parent | a7710f8d0d6745c683ad736918bcfa809716a590 (diff) | |
download | perl-e8c951909ff48204642537ff8810d8cd16a0dee9.tar.gz |
Defined INT64_C() and UINT64_C() unless defined by <inttypes.h>
(a macro to define signed and unsigned integer constants).
p4raw-id: //depot/perl@7690
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -133,6 +133,16 @@ typedef U64TYPE U64; # endif #endif /* PERL_CORE */ +#ifndef UINT64_C /* usually from <inttypes.h> */ +# ifdef HAS_LONG_LONG +# define INT64_C(c) CAT2(c,LL) +# define UINT64_C(c) CAT2(c,ULL) +# else +# define INT64_C(c) ((I64TYPE)(c)) +# define UINT64_C(c) ((U64TYPE)(c)) +# endif +#endif + /* Mention I8SIZE, U8SIZE, I16SIZE, U16SIZE, I32SIZE, U32SIZE, I64SIZE, and U64SIZE here so that metaconfig pulls them in. */ |