From 680bcf8deaf4165914f2ec8655a84b4e2c42c12b Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 22 Jun 2016 22:09:31 +0100 Subject: MSVC build: Fix build of noto.c The old definition for the RETURN macro relied on it either being on a non-standard C compiler, or it being used at the start of a block. Fix with a better macro. --- source/fitz/noto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/noto.c b/source/fitz/noto.c index 4bdc133a..70f3bb8f 100644 --- a/source/fitz/noto.c +++ b/source/fitz/noto.c @@ -37,9 +37,11 @@ #endif #define RETURN(NAME) \ + do {\ extern const int fz_font_ ## NAME ## _size; \ extern const char fz_font_ ## NAME []; \ - return *size = fz_font_ ## NAME ## _size, fz_font_ ## NAME + return *size = fz_font_ ## NAME ## _size, fz_font_ ## NAME;\ + } while (0) const char * fz_lookup_base14_font(fz_context *ctx, const char *name, int *size) -- cgit v1.2.3