[ENet-discuss] int types used in enet
Jay Sprenkle
jsprenkle at gmail.com
Wed Oct 6 08:00:27 PDT 2010
I've had issues with "dueling typedefs" as well. One library did it
differently than another and where they intersected gcc complained. They
ended up being the same at a binary level but it still gave errors.
On Wed, Oct 6, 2010 at 6:21 AM, Zac Evans <karadoc at gmail.com> wrote:
> This is just a minor point...
>
> I notice that ENet defines a bunch of int types that are used throughout
> the library. They are defined like this:
>
> typedef unsigned char enet_uint8; /**< unsigned 8-bit type */
> typedef unsigned short enet_uint16; /**< unsigned 16-bit type */
> typedef unsigned int enet_uint32; /**< unsigned 32-bit type */
>
> I think it would be better if ENet didn't use these types, and instead used
> the types defined in <stdint.h>.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20101006/59d2960b/attachment.html>
More information about the ENet-discuss
mailing list