I just patch the OIIO types to be TrueType and FalseType instead. They only appear in a few places so it’s minor enough surgery that I just do it every time I need to build OIIO fresh.
On Thu, 27 Jun 2019 at 09:33, Colin Doncaster <[email protected]> wrote: > We came up against a (potentially very isolated) issue when using > OpenImageIO on Linux within a Maya plugin, at some point one of Maya’s > headers indirectly includes Xlib.h which does > > #define True 1 > #define False 0 > > and thus causes a lot of "expected unqualified-id before numeric constant" > errors in OIIO’s simd.h > > Although we could bury/hide some of the OIIO usage we decided to undef the > two macros as it doesn’t seem to break anything. > > Have others come across this and if so was there a more elegant solution? > > Colin > > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
