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 <sean@xobs.io>
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| ResBasic.c | ||
| ResChecks.c | ||
| ResDebug.c | ||
| ResFract.c | ||
| ResJunct.c | ||
| ResMain.c | ||
| ResMakeRes.c | ||
| ResMerge.c | ||
| ResPrint.c | ||
| ResReadSim.c | ||
| ResRex.c | ||
| ResSimple.c | ||
| ResUtils.c | ||
| ResWrite.c | ||
| resis.h | ||