Merge pull request #481 from katterjohn/master

Avoid undefined C macro behavior
This commit is contained in:
Alex Shinn 2018-07-30 10:37:53 +08:00 committed by GitHub
commit 96de49efb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -46,6 +46,7 @@ Thanks to the following people for patches and bug reports:
* Jeronimo Pellegrini * Jeronimo Pellegrini
* John Cowan * John Cowan
* John Samsa * John Samsa
* Kris Katterjohn
* Lars J Aas * Lars J Aas
* Lorenzo Campedelli * Lorenzo Campedelli
* Marc Nieper-Wißkirchen * Marc Nieper-Wißkirchen

View file

@ -304,7 +304,11 @@
/* for bignum support, need a double long to store long*long */ /* for bignum support, need a double long to store long*long */
/* gcc supports uint128_t, otherwise we need a custom struct */ /* gcc supports uint128_t, otherwise we need a custom struct */
#ifndef SEXP_USE_CUSTOM_LONG_LONGS #ifndef SEXP_USE_CUSTOM_LONG_LONGS
#define SEXP_USE_CUSTOM_LONG_LONGS (SEXP_64_BIT && !defined(__GNUC__)) #if SEXP_64_BIT && !defined(__GNUC__)
#define SEXP_USE_CUSTOM_LONG_LONGS 1
#else
#define SEXP_USE_CUSTOM_LONG_LONGS 0
#endif
#endif #endif
#ifndef SEXP_USE_NO_FEATURES #ifndef SEXP_USE_NO_FEATURES