File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,15 @@ namespace OPENVDB_VERSION_NAME {
200200namespace math {
201201namespace internal {
202202
203+ // Use of lookup table is explicitly suppressed and the generation of
204+ // a lookup table is suppressed. This is required because we namespace
205+ // our type, but the lookup table is extern "C" and lacks a namespace.
206+ // Thus any attempt to link two versions of OpenVDB with different
207+ // namespaces will clash due to redefinition with a new type.
208+ // The default was not to use a lookup table.
209+ #undef IMATH_HALF_USE_LOOKUP_TABLE
210+ #define IMATH_HALF_NO_LOOKUP_TABLE
211+
203212// -------------------------------------------------------------------------
204213// Limits
205214//
Original file line number Diff line number Diff line change 1+ Fixes:
2+ - The Half.h is no longer built with an internal lookup table, but
3+ explicilty selects the non-lut version and disables creation of
4+ a lut. This is required to avoid symbol conflicts with
5+ different namespaced OpenVDB builds.
You can’t perform that action at this time.
0 commit comments