From 3b7c7895e732709927ee26554445b8ebf744418f Mon Sep 17 00:00:00 2001 From: taipanromania Date: Wed, 17 Sep 2008 18:24:15 +0000 Subject: [PATCH] compile without png --- backend/library.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/library.c b/backend/library.c index cca7d4b1..438700c8 100644 --- a/backend/library.c +++ b/backend/library.c @@ -286,16 +286,20 @@ int ZBarcode_Print_Rotated(struct zint_symbol *symbol, int rotate_angle) output[2] = symbol->outfile[strlen(symbol->outfile) - 1]; output[3] = '\0'; to_upper(output); +#ifndef NO_PNG if(!(strcmp(output, "PNG"))) { error_number = png_handle(symbol, rotate_angle); } else { +#endif if(!(strcmp(output, "EPS"))) { error_number = ps_plot(symbol); } else { strcpy(symbol->errtxt, "error: unknown output format"); return ERROR_INVALID_OPTION; } +#ifndef NO_PNG } +#endif } else { strcpy(symbol->errtxt, "error: unknown output format"); return ERROR_INVALID_OPTION;