diff options
Diffstat (limited to 'tools/perf/util/debug.h')
-rw-r--r-- | tools/perf/util/debug.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h index bb2e7d1007ab..dec98750b484 100644 --- a/tools/perf/util/debug.h +++ b/tools/perf/util/debug.h | |||
@@ -15,7 +15,14 @@ void trace_event(union perf_event *event); | |||
15 | struct ui_progress; | 15 | struct ui_progress; |
16 | struct perf_error_ops; | 16 | struct perf_error_ops; |
17 | 17 | ||
18 | #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT) | 18 | #if defined(NEWT_SUPPORT) || defined(GTK2_SUPPORT) |
19 | |||
20 | #include "../ui/progress.h" | ||
21 | int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); | ||
22 | #include "../ui/util.h" | ||
23 | |||
24 | #else | ||
25 | |||
19 | static inline void ui_progress__update(u64 curr __maybe_unused, | 26 | static inline void ui_progress__update(u64 curr __maybe_unused, |
20 | u64 total __maybe_unused, | 27 | u64 total __maybe_unused, |
21 | const char *title __maybe_unused) {} | 28 | const char *title __maybe_unused) {} |
@@ -34,13 +41,7 @@ perf_error__unregister(struct perf_error_ops *eops __maybe_unused) | |||
34 | return 0; | 41 | return 0; |
35 | } | 42 | } |
36 | 43 | ||
37 | #else /* NO_NEWT_SUPPORT && NO_GTK2_SUPPORT */ | 44 | #endif /* NEWT_SUPPORT || GTK2_SUPPORT */ |
38 | |||
39 | #include "../ui/progress.h" | ||
40 | int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); | ||
41 | #include "../ui/util.h" | ||
42 | |||
43 | #endif /* NO_NEWT_SUPPORT && NO_GTK2_SUPPORT */ | ||
44 | 45 | ||
45 | int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2))); | 46 | int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2))); |
46 | int ui__error_paranoid(void); | 47 | int ui__error_paranoid(void); |