mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
-Codechange: 'typedef struct Packet' changed to 'struct Packet'
This commit is contained in:
parent
d1b861a3dc
commit
f9462a50e9
@ -30,7 +30,7 @@ typedef enum {
|
|||||||
} NetworkRecvStatus;
|
} NetworkRecvStatus;
|
||||||
|
|
||||||
/** Forward declaration due to circular dependencies */
|
/** Forward declaration due to circular dependencies */
|
||||||
class Packet;
|
struct Packet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SocketHandler for all network sockets in OpenTTD.
|
* SocketHandler for all network sockets in OpenTTD.
|
||||||
|
@ -24,9 +24,9 @@ typedef uint8 PacketType; ///< Identifier for the packet
|
|||||||
* packet. Reading past the size of the packet when receiving
|
* packet. Reading past the size of the packet when receiving
|
||||||
* will return all 0 values and "" in case of the string.
|
* will return all 0 values and "" in case of the string.
|
||||||
*/
|
*/
|
||||||
typedef struct Packet {
|
struct Packet {
|
||||||
/** The next packet. Used for queueing packets before sending. */
|
/** The next packet. Used for queueing packets before sending. */
|
||||||
struct Packet *next;
|
Packet *next;
|
||||||
/** The size of the whole packet for received packets. For packets
|
/** The size of the whole packet for received packets. For packets
|
||||||
* that will be sent, the value is filled in just before the
|
* that will be sent, the value is filled in just before the
|
||||||
* actual transmission. */
|
* actual transmission. */
|
||||||
@ -35,7 +35,7 @@ typedef struct Packet {
|
|||||||
PacketSize pos;
|
PacketSize pos;
|
||||||
/** The buffer of this packet */
|
/** The buffer of this packet */
|
||||||
byte buffer[SEND_MTU];
|
byte buffer[SEND_MTU];
|
||||||
} Packet;
|
};
|
||||||
|
|
||||||
|
|
||||||
Packet *NetworkSend_Init(const PacketType type);
|
Packet *NetworkSend_Init(const PacketType type);
|
||||||
|
Loading…
Reference in New Issue
Block a user