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 --- darwin/Platform.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'darwin') diff --git a/darwin/Platform.h b/darwin/Platform.h index ea0c8197..af95db9c 100644 --- a/darwin/Platform.h +++ b/darwin/Platform.h @@ -23,6 +23,9 @@ in the source distribution for its full text. #include "generic/uname.h" +#define PLATFORM_LONG_OPTIONS +#define PLATFORM_LONG_OPTIONS_USAGE + extern const ProcessField Platform_defaultFields[]; extern double Platform_timebaseToNS; @@ -77,7 +80,7 @@ static inline void Platform_getRelease(char** string) { *string = Generic_uname(); } -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