summaryrefslogtreecommitdiff
path: root/source/fitz/noto.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-06-22 22:09:31 +0100
committerRobin Watts <robin.watts@artifex.com>2016-06-22 22:10:45 +0100
commit680bcf8deaf4165914f2ec8655a84b4e2c42c12b (patch)
treec76c0eb59e454a9996b5df68b4a8c1894380c7c5 /source/fitz/noto.c
parent25d9cb880f6162ea2128b75201b2fe46a48d0e10 (diff)
downloadmupdf-680bcf8deaf4165914f2ec8655a84b4e2c42c12b.tar.xz
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.
Diffstat (limited to 'source/fitz/noto.c')
-rw-r--r--source/fitz/noto.c4
1 files changed, 3 insertions, 1 deletions
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)