rename to avoid clash with a #define

This commit is contained in:
Ian Curtis 2018-01-03 16:19:10 +00:00
parent 3ab93cf6ee
commit 53c98283aa
2 changed files with 4 additions and 4 deletions

View file

@ -6,14 +6,14 @@ namespace SMUDP
struct Packet
{
static const UINT32 BUFFER_SIZE = 1460;
static const UINT32 BUFFER_SIZE_UDP = 1460;
UINT32 crc;
UINT16 currentID;
UINT16 totalIDs;
UINT16 flags;
UINT16 length;
UCHAR data[1460];
UCHAR data[BUFFER_SIZE_UDP];
Packet() {
Init();

View file

@ -85,8 +85,8 @@ bool UDPSend::Send(const char* ip, int port, int length, const void *data, int t
packet.flags = 0; // reset the flags (not used currently)
if (length > packet.BUFFER_SIZE) {
packet.length = packet.BUFFER_SIZE;
if (length > packet.BUFFER_SIZE_UDP) {
packet.length = packet.BUFFER_SIZE_UDP;
}
else {
packet.length = length;