From d56d23d91adf3fad512e5311fcdd0ca129e820c7 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 18 Mar 2021 08:23:07 +1100 Subject: Each platform defines its own long opt macro, prefer printf Follow up on the two items of feedback from cgzones review, and resolve a build failure picked up by CI on Mac OS X. Related to https://github.com/htop-dev/htop/pull/564 --- unsupported/Platform.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'unsupported') diff --git a/unsupported/Platform.h b/unsupported/Platform.h index d95feee5..8df948ef 100644 --- a/unsupported/Platform.h +++ b/unsupported/Platform.h @@ -17,6 +17,9 @@ in the source distribution for its full text. #include "UnsupportedProcess.h" +#define PLATFORM_LONG_OPTIONS +#define PLATFORM_LONG_OPTIONS_USAGE + extern const SignalItem Platform_signals[]; extern const unsigned int Platform_numberOfSignals; @@ -61,7 +64,7 @@ void Platform_getHostname(char* buffer, size_t size); void Platform_getRelease(char** string); -static bool Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) { +static inline bool Platform_getLongOption(ATTR_UNUSED int opt, ATTR_UNUSED int argc, ATTR_UNUSED char** argv) { return false; } -- cgit v1.2.3