X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f9caa863a9bb1a2aa3e0cd1892e077970d9dbb4a..0b29fd3d4584bdaee16b1289fc19b43fac5eb285:/lib/common.h diff --git a/lib/common.h b/lib/common.h index 9cf3892..99f8671 100644 --- a/lib/common.h +++ b/lib/common.h @@ -117,6 +117,14 @@ typedef unsigned char uint32_t; # endif #endif +#if ! HAVE_UINT16_T +# if USHRT_MAX == 65535 +typedef unsigned short uint16_t; +# else +# error cannot determine uint16_t +# endif +#endif + #if !HAVE_CLOSESOCKET # define closesocket close #endif