From a0d4ec39153d6a68bbb217fabaac99a71986f8cf Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Mon, 10 Oct 2022 22:26:59 +0300 Subject: [PATCH] Add missing ifdef check. --- include/boost/smart_ptr/intrusive_ptr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/smart_ptr/intrusive_ptr.hpp b/include/boost/smart_ptr/intrusive_ptr.hpp index ef682df..895a12f 100644 --- a/include/boost/smart_ptr/intrusive_ptr.hpp +++ b/include/boost/smart_ptr/intrusive_ptr.hpp @@ -245,7 +245,7 @@ template inline bool operator!=(T * a, intrusive_ptr const return a != b.get(); } -#if __GNUC__ == 2 && __GNUC_MINOR__ <= 96 +#if defined(__GNUC__) && __GNUC__ == 2 && __GNUC_MINOR__ <= 96 // Resolve the ambiguity between our op!= and the one in rel_ops