Fix ODR violations
On a shared build, these symbols exist in both libglslang.so and libSPIRV.so, leading to an ODR violation at runtime.
This commit is contained in:
parent
f1cb8608b3
commit
adfcaba7ae
6 changed files with 15 additions and 21 deletions
|
|
@ -131,16 +131,6 @@ TPoolAllocator::~TPoolAllocator()
|
|||
}
|
||||
}
|
||||
|
||||
const unsigned char TAllocation::guardBlockBeginVal = 0xfb;
|
||||
const unsigned char TAllocation::guardBlockEndVal = 0xfe;
|
||||
const unsigned char TAllocation::userDataFill = 0xcd;
|
||||
|
||||
# ifdef GUARD_BLOCKS
|
||||
const size_t TAllocation::guardBlockSize = 16;
|
||||
# else
|
||||
const size_t TAllocation::guardBlockSize = 0;
|
||||
# endif
|
||||
|
||||
//
|
||||
// Check a single guard block for damage
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue