[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5d751db 1/4: Let abridge_diagnostics() see it
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5d751db 1/4: Let abridge_diagnostics() see its attributes |
Date: |
Mon, 20 Feb 2017 07:14:16 -0500 (EST) |
branch: master
commit 5d751dbd82e8e316b31f44b390e1a5b6f55a0c0d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Let abridge_diagnostics() see its attributes
The lmi convention is to write __attribute__ on declarations only,
because that's the only portable way to write msw dll attributes. This
function is defined in a TU that didn't include its declaration, so
its __attribute__ was ignored when the definition was compiled.
---
input_sequence.hpp | 2 --
input_sequence_interval.hpp | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/input_sequence.hpp b/input_sequence.hpp
index bf6adb4..c2b3a83 100644
--- a/input_sequence.hpp
+++ b/input_sequence.hpp
@@ -192,7 +192,5 @@ class LMI_SO InputSequence
std::vector<std::string> keyword_result_;
};
-std::string LMI_SO abridge_diagnostics(char const* what);
-
#endif // input_sequence_hpp
diff --git a/input_sequence_interval.hpp b/input_sequence_interval.hpp
index 1310e1b..66df471 100644
--- a/input_sequence_interval.hpp
+++ b/input_sequence_interval.hpp
@@ -24,6 +24,8 @@
#include "config.hpp"
+#include "so_attributes.hpp"
+
#include <string>
enum duration_mode
@@ -56,5 +58,7 @@ struct ValueInterval
bool insane = false;
};
+std::string LMI_SO abridge_diagnostics(char const* what);
+
#endif // input_sequence_interval_hpp