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)
|
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
|
#if defined(HAS_LIBJPEG) && HAS_CAIRO==1
|
||||||
|
xRect *r = &xctx->rect[GRIDLAYER][i];
|
||||||
Zoom_info zi;
|
Zoom_info zi;
|
||||||
double rw, rh, scale;
|
double rw, rh, scale;
|
||||||
cairo_surface_t* png_sfc;
|
cairo_surface_t* png_sfc;
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,9 @@
|
||||||
#define XSCH_PI 3.14159265358979323846264338327950288419716939937
|
#define XSCH_PI 3.14159265358979323846264338327950288419716939937
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
|
#ifndef NO_SCCONFIG
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "../XSchemWin/config.h"
|
#include "../XSchemWin/config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue