From e44262b27b5692c226ec3bfa24a3dd66333490c3 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 8 Jul 2016 16:58:16 +0100 Subject: Bug 696911: muraster with no threads lib. Fix various niggles with muraster when compiled with no thread lib. Thanks to Tamir Evan. --- source/tools/muraster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/tools') 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; -- cgit v1.2.3