Fix windows build errors by sandboxing new SendReply dependency
Deals with macro name clashes, and also better enacapsulates unfortunate dep on SC internals, as well as improving build timesnix
parent
0fc7272c38
commit
8b37813b43
@ -0,0 +1,51 @@
|
||||
|
||||
#include "CopyReplyAddress.hpp"
|
||||
#include <SC_Win32Utils.h>
|
||||
#include <SC_ReplyImpl.hpp>
|
||||
|
||||
namespace fluid{
|
||||
namespace client{
|
||||
|
||||
void* copyReplyAddress(InterfaceTable* ft, World* inWorld, void* inreply)
|
||||
{
|
||||
|
||||
if(! inreply) return nullptr;
|
||||
|
||||
ReplyAddress* reply = (ReplyAddress*)ft->fRTAlloc(inWorld, sizeof(ReplyAddress));
|
||||
|
||||
*reply = *(static_cast<ReplyAddress*>(inreply));
|
||||
|
||||
return reply;
|
||||
}
|
||||
|
||||
void deleteReplyAddress(InterfaceTable* ft, World* inWorld, void* inreply)
|
||||
{
|
||||
if(! inreply) return;
|
||||
ft->fRTFree(inWorld,(ReplyAddress*)inreply);
|
||||
}
|
||||
|
||||
void* copyReplyAddress(void* inreply)
|
||||
{
|
||||
|
||||
if(! inreply) return nullptr;
|
||||
|
||||
ReplyAddress* reply = new ReplyAddress();
|
||||
|
||||
*reply = *(static_cast<ReplyAddress*>(inreply));
|
||||
|
||||
return reply;
|
||||
}
|
||||
|
||||
void deleteReplyAddress(void* inreply)
|
||||
{
|
||||
if(! inreply) return;
|
||||
delete (ReplyAddress*)inreply;
|
||||
}
|
||||
|
||||
void SendReply(void* inReplyAddr, char* inBuf, int inSize) {
|
||||
SendReply(static_cast<ReplyAddress*>(inReplyAddr),inBuf,inSize);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue