Windows build fix, warning removal.
This commit is contained in:
parent
91a37ec639
commit
9a475eeff9
3 changed files with 13 additions and 94 deletions
|
@ -65,6 +65,12 @@ public:
|
|||
Node(void *uptr,const struct ZT_Node_Callbacks *callbacks,uint64_t now);
|
||||
virtual ~Node();
|
||||
|
||||
// Get rid of alignment warnings on 32-bit Windows and possibly improve performance
|
||||
#ifdef __WINDOWS__
|
||||
void * operator new(size_t i) { return _mm_malloc(i,16); }
|
||||
void operator delete(void* p) { _mm_free(p); }
|
||||
#endif
|
||||
|
||||
// Public API Functions ----------------------------------------------------
|
||||
|
||||
ZT_ResultCode processWirePacket(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue