Control: tags -1 patch

Hi,

Here's a patch which fixes the build on GCC5 by correcting the version
check in ink_atomic.h.

Thanks,
James

--- a/lib/ts/ink_atomic.h
+++ b/lib/ts/ink_atomic.h
@@ -63,7 +63,7 @@ typedef vlong *pvlong;
 typedef vvoidp *pvvoidp;
 
 /* GCC compiler >= 4.1 */
-#if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 1)
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 401)
 
 /* see http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html */
 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to