OpenTimelineIO
OpenTimelineIO copied to clipboard
Offer alternative for cxxabi on Windows (Swift+Clang).
Summarize your change.
This fixes the clang compilation of OpenTimelineIO on Microsoft Windows, when compiling with Swift. Previously, the cxxabi.h
header was erroneously getting included in the Windows clang compilation of OpenTimelineIO's stringUtils.cpp
file because it was being conditionally compiled for clang across all platforms, and this header does not exist on the Windows platform.
- The include for
cxxabi.h
is now guarded via__has_include(<cxxabi.h>)
. - A new preprocessor definition for
OTIO_HAVE_DEMANGLER
is set to1
ifcxxabi.h
exists, and0
if this header does not exist. - Previous checks against
defined(__GNUC__) || defined(__clang__)
are replaced with conditional compilation checks against the newOTIO_HAVE_DEMANGLER
preprocessor define.