From c44b55d597492464246d11ea9c34e237a5be744e Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 8 May 2018 22:55:02 +0200 Subject: [PATCH] bindings: cxx: export static members of gpiod::line_request The static flags definitions of gpiod::line_request are not exported. Add the missing GPIOD_API attributes. Signed-off-by: Bartosz Golaszewski --- bindings/cxx/gpiod.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/cxx/gpiod.hpp b/bindings/cxx/gpiod.hpp index d066ca8..fd08b17 100644 --- a/bindings/cxx/gpiod.hpp +++ b/bindings/cxx/gpiod.hpp @@ -228,11 +228,11 @@ struct line_request /**< Listen for all types of events. */ }; - static const ::std::bitset<32> FLAG_ACTIVE_LOW; + GPIOD_API static const ::std::bitset<32> FLAG_ACTIVE_LOW; /**< Set the active state to 'low' (high is the default). */ - static const ::std::bitset<32> FLAG_OPEN_SOURCE; + GPIOD_API static const ::std::bitset<32> FLAG_OPEN_SOURCE; /**< The line is an open-source port. */ - static const ::std::bitset<32> FLAG_OPEN_DRAIN; + GPIOD_API static const ::std::bitset<32> FLAG_OPEN_DRAIN; /**< The line is an open-drain port. */ ::std::string consumer; -- 2.30.2