Build issues on macOS
I've been using Cairo in a project for some time. I have some CI that builds the project in multiple environments, and at some point in the last months, the project stopped building on macOS due to this error:
In file included from ../src/modules/cairo/cairo.cc:13: In file included from ../src/modules/cairo/font-face.h:15: In file included from /usr/local/Cellar/cairo/1.16.0_3/include/cairo/cairo-quartz.h:43: In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23: In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19: In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:77: /usr/include/MacTypes.h:309:41: error: typedef redefinition with different types ('unsigned char' vs 'v8::Boolean') typedef unsigned char Boolean;
I also use Google's V8 in this project, and it exports a
v8::Boolean type. But it seems that an include of
cairo-quartz.h is now conflicting with this type.
I'm not super comfortable with the include process in C/C++ and I'm not sure how to solve this issue, and I was wondering if you would be able to assist me with my problem.