Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1168089

Browse files
committed
Move macro-guard definition to meson.build
1 parent 0cdd004 commit 1168089

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

extern/agg24-svn/include/agg_image_filters.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef AGG_IMAGE_FILTERS_INCLUDED
2121
#define AGG_IMAGE_FILTERS_INCLUDED
2222

23-
#define MPL_FIX_IMAGE_FILTER_LUT_BUGS
24-
2523
#include "agg_array.h"
2624
#include "agg_math.h"
2725

@@ -55,7 +53,7 @@ namespace agg
5553
double r = filter.radius();
5654
realloc_lut(r);
5755
unsigned i;
58-
#ifndef MPL_FIX_IMAGE_FILTER_LUT_BUGS
56+
#ifndef MPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS
5957
unsigned pivot = diameter() << (image_subpixel_shift - 1);
6058
for(i = 0; i < pivot; i++)
6159
{

extern/agg24-svn/src/agg_image_filters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ namespace agg
8888
}
8989
}
9090

91-
#ifndef MPL_FIX_IMAGE_FILTER_LUT_BUGS
91+
#ifndef MPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS
9292
unsigned pivot = m_diameter << (image_subpixel_shift - 1);
9393

9494
for(i = 0; i < pivot; i++)

meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ project(
3131
],
3232
)
3333

34+
# Enable bug fixes in Agg
35+
add_project_arguments('-DMPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS', language : 'cpp')
36+
3437
cc = meson.get_compiler('c')
3538
cpp = meson.get_compiler('cpp')
3639

0 commit comments

Comments
 (0)