Get rid of pointer size checks

To allow cross-compiling 32-bit libraries.
This commit is contained in:
Robbert van der Helm
2021-06-24 13:17:15 +02:00
parent 3b06634e33
commit 94b3c92432
-7
View File
@@ -31,13 +31,6 @@
// `intptr_t`. Otherwise the binary serialization would break. The 64 <-> 32 bit
// conversion for the 32-bit host application won't cause any issues for us
// since we can't directly pass pointers between the plugin and the host anyway.
#ifndef __WINE__
// Sanity check for the plugin, both the 64 and 32 bit hosts should follow these
// conventions
static_assert(std::is_same_v<size_t, uint64_t>);
static_assert(std::is_same_v<intptr_t, int64_t>);
#endif
using native_size_t = uint64_t;
using native_intptr_t = int64_t;