lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master cdd64d2 04/10: Remove a superannuated gcc con


From: Greg Chicares
Subject: [lmi-commits] [lmi] master cdd64d2 04/10: Remove a superannuated gcc conditional
Date: Sat, 11 Mar 2017 17:24:20 -0500 (EST)

branch: master
commit cdd64d202beff5732c27a2dd871238af150a9860
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Remove a superannuated gcc conditional
    
    It has become redundant to require a particular version of gcc for ELF
    visibility attributes, which have been supported
      https://gcc.gnu.org/ml/gcc-cvs/2004-07/msg01232.html
    since well before the C++11 dialect without which lmi cannot be built.
---
 so_attributes.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/so_attributes.hpp b/so_attributes.hpp
index 183a556..9a64d96 100644
--- a/so_attributes.hpp
+++ b/so_attributes.hpp
@@ -83,15 +83,15 @@
 #       else  // !defined LMI_BUILD_SO && !defined LMI_USE_SO
 #           error Neither LMI_BUILD_SO nor LMI_USE_SO defined.
 #       endif // !defined LMI_BUILD_SO && !defined LMI_USE_SO
-#   elif defined __GNUC__ && 30400 <= LMI_GCC_VERSION
+#   elif defined __GNUC__
 #       if defined LMI_BUILD_SO
 #           define LMI_SO __attribute__((visibility("default")))
 #       else  // !defined LMI_BUILD_SO
 #           define LMI_SO
 #       endif // !defined LMI_BUILD_SO
-#   else  // !defined LMI_MSW and no ELF visibility support
+#   else  // !defined LMI_MSW && !defined __GNUC__
 #       define LMI_SO
-#   endif // !defined LMI_MSW and no ELF visibility support
+#   endif // !defined LMI_MSW && !defined __GNUC__
 #else  // !defined LMI_USE_SO_ATTRIBUTES
 #   define LMI_SO
 #endif // !defined LMI_USE_SO_ATTRIBUTES



reply via email to

[Prev in Thread] Current Thread [Next in Thread]