mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
compile without png
This commit is contained in:
parent
3b0a048fa9
commit
3b7c7895e7
@ -286,16 +286,20 @@ int ZBarcode_Print_Rotated(struct zint_symbol *symbol, int rotate_angle)
|
|||||||
output[2] = symbol->outfile[strlen(symbol->outfile) - 1];
|
output[2] = symbol->outfile[strlen(symbol->outfile) - 1];
|
||||||
output[3] = '\0';
|
output[3] = '\0';
|
||||||
to_upper(output);
|
to_upper(output);
|
||||||
|
#ifndef NO_PNG
|
||||||
if(!(strcmp(output, "PNG"))) {
|
if(!(strcmp(output, "PNG"))) {
|
||||||
error_number = png_handle(symbol, rotate_angle);
|
error_number = png_handle(symbol, rotate_angle);
|
||||||
} else {
|
} else {
|
||||||
|
#endif
|
||||||
if(!(strcmp(output, "EPS"))) {
|
if(!(strcmp(output, "EPS"))) {
|
||||||
error_number = ps_plot(symbol);
|
error_number = ps_plot(symbol);
|
||||||
} else {
|
} else {
|
||||||
strcpy(symbol->errtxt, "error: unknown output format");
|
strcpy(symbol->errtxt, "error: unknown output format");
|
||||||
return ERROR_INVALID_OPTION;
|
return ERROR_INVALID_OPTION;
|
||||||
}
|
}
|
||||||
|
#ifndef NO_PNG
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
strcpy(symbol->errtxt, "error: unknown output format");
|
strcpy(symbol->errtxt, "error: unknown output format");
|
||||||
return ERROR_INVALID_OPTION;
|
return ERROR_INVALID_OPTION;
|
||||||
|
Loading…
Reference in New Issue
Block a user