fixes for build on windows

This commit is contained in:
2026-02-14 14:31:31 +01:00
parent c2918e79c3
commit b772b91e6e
5 changed files with 23 additions and 9 deletions
+3 -1
View File
@@ -2,7 +2,7 @@
#define GPIO_HPP
#include <QObject>
#if defined(__aarch64__) || defined(__x86_64__)
#if defined(__linux__) && (defined(__aarch64__) || defined(__x86_64__))
#include <gpiod.hpp>
#else
@@ -24,7 +24,9 @@ class GPIO : public QObject
bool value();
private:
#if defined(__linux__) && (defined(__aarch64__) || defined(__x86_64__))
std::unique_ptr<gpiod::line_request> m_request;
#endif
unsigned int m_offset;
};