diff options
Diffstat (limited to 'tools/perf/ui/helpline.h')
-rw-r--r-- | tools/perf/ui/helpline.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/perf/ui/helpline.h b/tools/perf/ui/helpline.h index 2b667ee454c3..baa28a4d16b9 100644 --- a/tools/perf/ui/helpline.h +++ b/tools/perf/ui/helpline.h | |||
@@ -23,25 +23,25 @@ void ui_helpline__puts(const char *msg); | |||
23 | 23 | ||
24 | extern char ui_helpline__current[512]; | 24 | extern char ui_helpline__current[512]; |
25 | 25 | ||
26 | #ifdef NO_NEWT_SUPPORT | 26 | #ifdef NEWT_SUPPORT |
27 | extern char ui_helpline__last_msg[]; | ||
28 | int ui_helpline__show_help(const char *format, va_list ap); | ||
29 | #else | ||
27 | static inline int ui_helpline__show_help(const char *format __maybe_unused, | 30 | static inline int ui_helpline__show_help(const char *format __maybe_unused, |
28 | va_list ap __maybe_unused) | 31 | va_list ap __maybe_unused) |
29 | { | 32 | { |
30 | return 0; | 33 | return 0; |
31 | } | 34 | } |
32 | #else | 35 | #endif /* NEWT_SUPPORT */ |
33 | extern char ui_helpline__last_msg[]; | ||
34 | int ui_helpline__show_help(const char *format, va_list ap); | ||
35 | #endif /* NO_NEWT_SUPPORT */ | ||
36 | 36 | ||
37 | #ifdef NO_GTK2_SUPPORT | 37 | #ifdef GTK2_SUPPORT |
38 | int perf_gtk__show_helpline(const char *format, va_list ap); | ||
39 | #else | ||
38 | static inline int perf_gtk__show_helpline(const char *format __maybe_unused, | 40 | static inline int perf_gtk__show_helpline(const char *format __maybe_unused, |
39 | va_list ap __maybe_unused) | 41 | va_list ap __maybe_unused) |
40 | { | 42 | { |
41 | return 0; | 43 | return 0; |
42 | } | 44 | } |
43 | #else | 45 | #endif /* GTK2_SUPPORT */ |
44 | int perf_gtk__show_helpline(const char *format, va_list ap); | ||
45 | #endif /* NO_GTK2_SUPPORT */ | ||
46 | 46 | ||
47 | #endif /* _PERF_UI_HELPLINE_H_ */ | 47 | #endif /* _PERF_UI_HELPLINE_H_ */ |