diff --git a/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c b/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c index 6af903376a..0554acb6ec 100644 --- a/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c +++ b/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c @@ -50,7 +50,7 @@ * causing and * . On glibc it passes, but * let's make it fail to aid testing. */ -#define guarded_malloc(x) ( (x) ? malloc(x) : NULL ) +static inline void* guarded_malloc(size_t x) { return x ? malloc(x) : NULL; } enum { OP_EQUAL = 0,