1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_UI_SLANG_H_
3 #define _PERF_UI_SLANG_H_ 1
5 * slang versions <= 2.0.6 have a "#if HAVE_LONG_LONG" that breaks
6 * the build if it isn't defined. Use the equivalent one that glibc
10 #ifndef HAVE_LONG_LONG
11 #define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG
14 #ifdef HAVE_SLANG_INCLUDE_SUBDIR
15 #include <slang/slang.h>
20 #if SLANG_VERSION < 20104
21 #define slsmg_printf(msg, args...) \
22 SLsmg_printf((char *)(msg), ##args)
23 #define slsmg_vprintf(msg, vargs) \
24 SLsmg_vprintf((char *)(msg), vargs)
25 #define slsmg_write_nstring(msg, len) \
26 SLsmg_write_nstring((char *)(msg), len)
27 #define sltt_set_color(obj, name, fg, bg) \
28 SLtt_set_color(obj,(char *)(name), (char *)(fg), (char *)(bg))
30 #define slsmg_printf SLsmg_printf
31 #define slsmg_vprintf SLsmg_vprintf
32 #define slsmg_write_nstring SLsmg_write_nstring
33 #define sltt_set_color SLtt_set_color
36 #define SL_KEY_UNTAB 0x1000
38 #endif /* _PERF_UI_SLANG_H_ */