1.1 --- a/src/ucx/ucx.h Fri Sep 28 21:47:30 2018 +0200 1.2 +++ b/src/ucx/ucx.h Sun Oct 07 09:00:08 2018 +0200 1.3 @@ -133,7 +133,7 @@ 1.4 1.5 1.6 1.7 -#if defined(__GNUC__) || defined(__clang__) 1.8 +#if __GNUC__ >= 5 || defined(__clang__) 1.9 #define UCX_MUL_BUILTIN 1.10 1.11 #if __WORDSIZE == 32 1.12 @@ -181,7 +181,9 @@ 1.13 * @return zero, if no overflow occurred and the result is correct, non-zero 1.14 * otherwise 1.15 */ 1.16 -int ucx_szmul(size_t a, size_t b, size_t *result); 1.17 +#define ucx_szmul(a, b, result) ucx_szmul_impl(a, b, result) 1.18 + 1.19 +int ucx_szmul_impl(size_t a, size_t b, size_t *result); 1.20 1.21 #endif 1.22