# HG changeset patch # User Siddharth Agarwal # Date 2013-09-19 16:45:00 # Node ID 2c9645c0a582e59b1050ad0761730f76215f0c42 # Parent 11fdf9f754b78d04abe81430607f292d1a04aa2c util.h: fix gcc version checking gcc doesn't have a predefined GCC_VERSION macro. diff --git a/mercurial/util.h b/mercurial/util.h --- a/mercurial/util.h +++ b/mercurial/util.h @@ -156,7 +156,7 @@ static inline uint32_t getbe32(const cha { return _byteswap_ulong(*(uint32_t *)c); } -#elif GCC_VERSION >= 403 +#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) static inline uint32_t getbe32(const char *c) { return __builtin_bswap32(*(uint32_t *)c); @@ -179,7 +179,7 @@ static inline void putbe32(uint32_t x, c x = _byteswap_ulong(x); *(uint32_t *)c = x; } -#elif GCC_VERSION >= 403 +#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) static inline void putbe32(uint32_t x, char *c) { x = __builtin_bswap32(x);