1

I'm trying to compile mupdf on Windows 7 using mingw gcc. It is taking exception with the following line in context.h

#define fz_throw(CTX, ERRCODE, MSG, ...) fz_throw_imp(CTX, __FILE__, __LINE__, ERRCODE, MSG, __VA_ARGS__)

With the error:

\mupdf\include/mupdf/fitz/context.h:70:105: error: expected expression before ')' token

Supposedly this code compiles with gcc. What is the particular issue here?

dilbert
  • 3,008
  • 1
  • 25
  • 34

1 Answers1

1

This might help:

How to make a variadic macro (variable number of arguments)

Community
  • 1
  • 1
r3mainer
  • 23,981
  • 3
  • 51
  • 88