From 43cd801e13a4f8436e5e459c5bd7d35a51916f12 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sun, 13 Aug 2023 19:13:43 -0400
Subject: [PATCH] SDLNet_GetMaxDatagramSize() was removed, take it out of the
headers.
---
SDL_net.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/SDL_net.h b/SDL_net.h
index 2cf34d1..8cba1a3 100644
--- a/SDL_net.h
+++ b/SDL_net.h
@@ -74,7 +74,6 @@ typedef struct SDLNet_Datagram
int buflen;
} SDLNet_Datagram;
-extern DECLSPEC int SDLCALL SDLNet_GetMaxDatagramSize(void); /* Probably just hardcode to 1500? */
extern DECLSPEC SDLNet_DatagramSocket * SDLCALL SDLNet_CreateDatagramSocket(SDLNet_Address *addr, Uint16 port); /* Specify NULL for any/all interfaces, or something from GetLocalAddresses */
extern DECLSPEC int SDLCALL SDLNet_SendDatagram(SDLNet_DatagramSocket *sock, SDLNet_Address *address, Uint16 port, const void *buf, int buflen); /* always queues what it can't send immediately. Does not block, -1 on out of memory, dead socket, etc. */
extern DECLSPEC int SDLCALL SDLNet_ReceiveDatagram(SDLNet_DatagramSocket *sock, SDLNet_Datagram **dgram); /* Get next available packet. Does not block, returns 0 and sets *dgram=NULL if none available. -1 on errors, zero otherwise. */