On 29 April 2015 at 11:34, Francois Gouget <fgouget(a)free.fr> wrote:
> This fixes compilation on FreeBSD.
> ---
>
> The only other files that use UINT32_MAX are:
> * The .yy.c files. These are generated and always do an ifndef+define.
> * dlls/mshtml/nsembed.c though it calls it PR_UINT32_MAX for some reason.
> * dlls/jscript/string.c which simply defines it.
> * dlls/winemac.drv/macdrv_cocoa.h which presumably gets it from the Mac
> OS X headers.
>
> Maybe mshtml and jscript should use inttypes.h, or to the contrary,
> maybe ws2_32 should use the ifndef+define approach.
>
Arguably it shouldn't be using UINT32_MAX at all, since it isn't
actually used with uint32_t. I guess it should be using e.g. unsigned
int with UINT_MAX instead.