bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] xsize.h needs SIZE_MAX defined on Windows


From: Bruno Haible
Subject: Re: [Bug-gnulib] xsize.h needs SIZE_MAX defined on Windows
Date: Thu, 11 Mar 2004 12:13:56 +0100
User-agent: KMail/1.5

Derek Robert Price wrote:
> Hey all, here's a patch for lib/xsize.h: Basically, a default value for
> SIZE_MAX needs to be provided under Windows.

Yes. But it doesn't belong in lib/xsize.h. It should be treated like any
other C macro whose value is autoconfigured. Is your Windows build using
configure?

If yes, you should be using the size_max.m4 macro, and it should lead to

    #define SIZE_MAX 4294967295U

in config.h.

If no, then you need to replace the config.h through a pre-build one
or through a set of -D defines in the Makefile. Add SIZE_MAX to this
database. For example, the gettext Woe32 builds use

config.h.msvc: config.h.in
        sed -e 's/#undef ENABLE_NLS$$/#define ENABLE_NLS 1/' \
            .....
            -e 's/#undef SIZE_MAX$$/#define SIZE_MAX 4294967295U/' \
            .....
          < $(srcdir)/config.h.in > $@

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]