lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 4d5ba79 03/10: Improve #error messages


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4d5ba79 03/10: Improve #error messages
Date: Sat, 11 Mar 2017 17:24:20 -0500 (EST)

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

    Improve #error messages
    
    An #error directive betokens an error. It is redundant to say that
    the condition it describes ought to be avoided.
---
 so_attributes.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/so_attributes.hpp b/so_attributes.hpp
index b2f8c12..183a556 100644
--- a/so_attributes.hpp
+++ b/so_attributes.hpp
@@ -74,14 +74,14 @@
 #if defined LMI_USE_SO_ATTRIBUTES
 #   if defined LMI_MSW
 #       if defined LMI_BUILD_SO && defined LMI_USE_SO
-#           error LMI_BUILD_SO and LMI_USE_SO must not both be defined.
+#           error Both LMI_BUILD_SO and LMI_USE_SO defined.
 #       endif // defined LMI_BUILD_SO && defined LMI_USE_SO
 #       if defined LMI_BUILD_SO
 #           define LMI_SO __declspec(dllexport)
 #       elif defined LMI_USE_SO
 #           define LMI_SO __declspec(dllimport)
 #       else  // !defined LMI_BUILD_SO && !defined LMI_USE_SO
-#           error Either LMI_BUILD_SO or LMI_USE_SO must be defined.
+#           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
 #       if defined LMI_BUILD_SO



reply via email to

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