diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-11 21:01:21 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-11 21:01:21 +0000 |
commit | 15b99d39e9ccb421b0e7c01639f4bddb62f79f92 (patch) | |
tree | 43b17d0b75ad16f6b83bb7798147b02b769c337a /perl.h | |
parent | 5f758ba4b4162dea84a83b71f0e14f4eede76726 (diff) | |
download | perl-15b99d39e9ccb421b0e7c01639f4bddb62f79f92.tar.gz |
Guard against accidental long long use.
p4raw-id: //depot/cfgperl@5068
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 32 |
1 files changed, 18 insertions, 14 deletions
@@ -3012,26 +3012,30 @@ typedef struct am_table_short AMTS; #endif /* !USE_LOCALE_NUMERIC */ -#if !defined(Atol) && defined(HAS_LONG_LONG) -# if !defined(Atol) && defined(HAS_STRTOLL) -# define Atol(s) strtoll(s, (char**)NULL, 10) -# endif -# if !defined(Atol) && defined(HAS_ATOLL) -# define Atol atoll -# endif -#endif +#if !defined(Atol) && defined(USE_64_BITS) && defined(HAS_QUAD) +# if !defined(Atol) && defined(HAS_LONG_LONG) +# if !defined(Atol) && defined(HAS_STRTOLL) +# define Atol(s) strtoll(s, (char**)NULL, 10) +# endif +# if !defined(Atol) && defined(HAS_ATOLL) +# define Atol atoll +# endif +# endif /* is there atoq() anywhere? */ +#endif #if !defined(Atol) # define Atol atol /* we assume atol being available anywhere */ #endif -#if !defined(Strtoul) && defined(HAS_LONG_LONG) && defined(HAS_STRTOULL) -# define Strtoul strtoull -#endif +#if !defined(Strtoul) && defined(USE_64_BITS) && defined(HAS_QUAD) +# if !defined(Strtoul) && defined(HAS_LONG_LONG) && defined(HAS_STRTOULL) +# define Strtoul strtoull +# endif /* is there atouq() anywhere? */ -#if !defined(Strtoul) && defined(USE_64_BITS) && defined(HAS_STRTOUQ) -# define Strtoul strtouq -#endif +# if !defined(Strtoul) && defined(USE_64_BITS) && defined(HAS_STRTOUQ) +# define Strtoul strtouq +# endif +#nendif #if !defined(Strtoul) # define Strtoul strtoul /* we assume strtoul being available anywhere */ #endif |