diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-07-08 16:58:16 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-07-08 17:19:55 +0100 |
commit | e44262b27b5692c226ec3bfa24a3dd66333490c3 (patch) | |
tree | 6fbba10bec885d69389e21332aee4b71c728bb7a /source/tools | |
parent | 2be507bfb199e8c80e4b2ee1cb2c867b57fc1f6e (diff) | |
download | mupdf-e44262b27b5692c226ec3bfa24a3dd66333490c3.tar.xz |
Bug 696911: muraster with no threads lib.
Fix various niggles with muraster when compiled with no thread lib.
Thanks to Tamir Evan.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/muraster.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/tools/muraster.c b/source/tools/muraster.c index 6a2cf87e..e3d95772 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -496,7 +496,7 @@ static void fin_muraster_locks(void) #endif #if MURASTER_THREADS == 0 && NUM_RENDER_THREADS != 0 -#error Can't have MURASTER_CONFIG_RENDER_THREADS > 0 without having a threading library! +#error "Can't have MURASTER_CONFIG_RENDER_THREADS > 0 without having a threading library!" #endif #ifdef MURASTER_CONFIG_BGPRINT @@ -508,7 +508,7 @@ static void fin_muraster_locks(void) #endif #if MURASTER_THREADS == 0 && BGPRINT != 0 -#error Can't have MURASTER_CONFIG_BGPRINT > 0 without having a threading library! +#error "Can't have MURASTER_CONFIG_BGPRINT > 0 without having a threading library!" #endif typedef struct worker_t { @@ -662,7 +662,7 @@ static void usage(void) "\t-f\tfit file to page if too large\n" "\t-B -\tminimum bandheight (e.g. 32)\n" "\t-M -\tmax bandmemory (e.g. 655360)\n" -#ifdef MURASTER_THREADS +#if MURASTER_THREADS != 0 "\t-T -\tnumber of threads to use for rendering\n" #endif "\n" @@ -1457,7 +1457,7 @@ trace_realloc(void *arg, void *p_, size_t size) return &p[1]; } -#ifdef MURASTER_THREADS +#if MURASTER_THREADS != 0 static THREAD_RETURN_TYPE worker_thread(void *arg) { worker_t *me = (worker_t *)arg; |