1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Fix #230: must be GNUC >= 5

This commit is contained in:
bel
2015-12-07 19:16:27 +01:00
parent ef121c468b
commit b31ba11f03

View File

@@ -1254,7 +1254,7 @@ mg_atomic_inc(volatile int *addr)
* so whatever you use, the other SDK is likely to raise a warning. */
ret = InterlockedIncrement((volatile long *)addr);
#elif defined(__GNUC__) \
&& (__GNUC__ > 5 || (__GNUC__ == 4 && __GNUC_MINOR__ > 0))
&& (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ > 0))
ret = __sync_add_and_fetch(addr, 1);
#else
ret = (++(*addr));