ps_embedded_graph(): variable declaration guarded inside if defined(HAS_LIBJPEG); xschem.h: avoid including ../config.h if manual Makefile used
This commit is contained in:
parent
18e45abc69
commit
d3b5e999f4
|
|
@ -252,8 +252,8 @@ static int ps_embedded_image(xRect* r, double x1, double y1, double x2, double y
|
|||
|
||||
static int ps_embedded_graph(int i, double rx1, double ry1, double rx2, double ry2)
|
||||
{
|
||||
xRect *r = &xctx->rect[GRIDLAYER][i];
|
||||
#if defined(HAS_LIBJPEG) && HAS_CAIRO==1
|
||||
xRect *r = &xctx->rect[GRIDLAYER][i];
|
||||
Zoom_info zi;
|
||||
double rw, rh, scale;
|
||||
cairo_surface_t* png_sfc;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,9 @@
|
|||
#define XSCH_PI 3.14159265358979323846264338327950288419716939937
|
||||
|
||||
#ifdef __unix__
|
||||
#ifndef NO_SCCONFIG
|
||||
#include "../config.h"
|
||||
#endif
|
||||
#else
|
||||
#include "../XSchemWin/config.h"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue