diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-10-05 18:47:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-06 11:49:45 +0100 |
commit | 6870dfecd94c1dec0e7970464b11d3b9d5d1250a (patch) | |
tree | 3169711f92d31ed75cacb4d528c24e5f2991c1a5 | |
parent | b22c54d48e1806ae2b88ec2bae518beb0372f0de (diff) | |
download | mupdf-6870dfecd94c1dec0e7970464b11d3b9d5d1250a.tar.xz |
Only build murun if we have mujs enabled.
Otherwise we were tripping over the lack of the header file.
-rw-r--r-- | source/tools/murun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 14e28f70..9c1b07c1 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -1,6 +1,8 @@ #include "mupdf/fitz.h" #include "mupdf/pdf.h" +#if FZ_ENABLE_JS + #include "mujs.h" #define PS1 "> " @@ -3896,3 +3898,5 @@ int murun_main(int argc, char **argv) fz_drop_context(ctx); return 0; } + +#endif |