[Spice-devel] [PATCH 02/11] client/common.h: mingw32 fix

Christophe Fergeau cfergeau at redhat.com
Fri Jan 13 04:44:33 PST 2012


ACK
On Fri, Jan 13, 2012 at 01:35:45PM +0200, Alon Levy wrote:
> define PACKAGE_VERSION only ifndef __GNUC__
> Since it is defined by autoconf and so it kinda comes with using the GNU
> compilers.
> ---
>  client/common.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/client/common.h b/client/common.h
> index 8b4e39d..e9572bd 100644
> --- a/client/common.h
> +++ b/client/common.h
> @@ -58,12 +58,12 @@
>  #pragma warning(disable:4355)
>  #pragma warning(disable:4996)
>  #pragma warning(disable:4200)
> +
> +extern const char* PACKAGE_VERSION;
>  #endif
>  
>  #define strcasecmp stricmp
>  
> -extern const char* PACKAGE_VERSION;
> -
>  #else
>  #include <unistd.h>
>  #include <X11/X.h>
> -- 
> 1.7.8.2
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- 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/20120113/9886bd71/attachment.pgp>


More information about the Spice-devel mailing list