Avoid undefined C macro behavior

MacOS and clang compilers complain about undefined behavior
in C macro.
Rewrite macro to solve that.

Fixes issue #638
This commit is contained in:
Donaim 2020-05-13 22:14:09 +02:00
parent 72e70bef88
commit bd62a076c6

View file

@ -451,7 +451,11 @@
#endif
#ifndef SEXP_USE_TIME_GC
#define SEXP_USE_TIME_GC (SEXP_USE_DEBUG_GC > 0 || defined(__linux) || SEXP_BSD)
#if SEXP_USE_DEBUG_GC > 0 || defined(__linux) || SEXP_BSD
#define SEXP_USE_TIME_GC 1
#else
#define SEXP_USE_TIME_GC 0
#endif
#endif
#ifndef SEXP_USE_SAFE_GC_MARK