mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
rename Region to ExtRegion
On Macos, Tk includes X11, which has this define:
#if !defined(MAC_OSX_TK)
# include <X11/X.h>
#endif
#ifdef MAC_OSX_TK
# include <X11/X.h>
# define Cursor XCursor
# define Region XRegion
#endif
This causes the keywords `Cursor` and `Region` to be reserved, which
prevents magic from building.
Rename `Region` to `ExtRegion` as suggested by @RTimothyEdwards in
https://github.com/RTimothyEdwards/magic/issues/195#issuecomment-1298870983
and https://github.com/RTimothyEdwards/magic/pull/222#pullrequestreview-1334900670
Signed-off-by: Sean Cross <[email protected]>
This commit is contained in:
+1
-1
@@ -823,7 +823,7 @@ PlotPNM(fileName, scx, layers, xMask, width)
|
||||
|
||||
TxPrintf ("PNM image dimensions: %d x %d\n", im_x, im_y);
|
||||
#if 0
|
||||
TxPrintf ("Region size: %d x %d\n", tile_xsize, tile_ysize);
|
||||
TxPrintf ("ExtRegion size: %d x %d\n", tile_xsize, tile_ysize);
|
||||
TxPrintf ("Pixels per region: %d\n", y_pixels);
|
||||
TxPrintf ("Scale: %g\n", scale);
|
||||
TxPrintf ("Antialiasing overlap: %d\n", scale_over_2);
|
||||
|
||||
Reference in New Issue
Block a user