From d643b45921d20b8a63292e7f47e36bba8a8c42a5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 9 Nov 2018 10:33:30 +0100 Subject: geoptimiser: Fix ifdefs --- src/geoptimiser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/geoptimiser.c b/src/geoptimiser.c index aacb7302..f66ac709 100644 --- a/src/geoptimiser.c +++ b/src/geoptimiser.c @@ -2535,7 +2535,7 @@ int optimize_geometry(struct geoptimiser_params *gparams, if ( gparams->stretch_map ) { -#ifdef HAVE_SAVE_TO_PNG +#ifdef CAN_SAVE_TO_PNG STATUS("Saving stretch map - for out-of-plane rotations.\n"); @@ -2548,12 +2548,12 @@ int optimize_geometry(struct geoptimiser_params *gparams, return 1; } -#else /* HAVE_SAVE_TO_PNG */ +#else /* CAN_SAVE_TO_PNG */ STATUS("ERROR: geoptimiser was compiled without GTK and " "cairo support.\n Stretch map will not be saved.\n"); -#endif /* HAVE_SAVE_TO_PNG */ +#endif /* CAN_SAVE_TO_PNG */ } @@ -2822,7 +2822,7 @@ int main(int argc, char *argv[]) strcat(command_line, buffer); } -#ifdef HAVE_SAVE_TO_PNG +#ifdef CAN_SAVE_TO_PNG #if !GLIB_CHECK_VERSION(2,36,0) g_type_init(); #endif -- cgit v1.2.3