[Spice-devel] [PATCH 5/6] client/windows: undef SIZE_MAX in stdint.h

Christophe Fergeau cfergeau at redhat.com
Thu May 12 07:38:25 PDT 2011


On Thu, May 12, 2011 at 12:37:30PM +0300, Arnon Gilboa wrote:
> eliminating redefinition warning
> ---
>  client/windows/stdint.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/client/windows/stdint.h b/client/windows/stdint.h
> index 45b133e..768ca03 100644
> --- a/client/windows/stdint.h
> +++ b/client/windows/stdint.h
> @@ -293,7 +293,7 @@ typedef unsigned long long   uintmax_t;
>  #define SIG_ATOMIC_MAX INT32_MAX
>  
>  
> -
> +#undef SIZE_MAX
>  #define SIZE_MAX UINT32_MAX

Any idea if the already defined value is good for us to use? Ie
#ifndef SIZE_MAX
#define SIZE_MAX UINT32_MAX
#endif

may be better. Or even dropping this #define if it's no longer useful.
Maybe needed on cygwin?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110512/2ae01847/attachment.pgp>


More information about the Spice-devel mailing list