Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _PERF_UI_SLANG_H_
3#define _PERF_UI_SLANG_H_ 1
4/*
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
7 * has on features.h.
8 */
9#include <features.h>
10#ifndef HAVE_LONG_LONG
11#define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG
12#endif
13#include <slang.h>
14
15#if SLANG_VERSION < 20104
16#define slsmg_printf(msg, args...) \
17 SLsmg_printf((char *)(msg), ##args)
18#define slsmg_vprintf(msg, vargs) \
19 SLsmg_vprintf((char *)(msg), vargs)
20#define slsmg_write_nstring(msg, len) \
21 SLsmg_write_nstring((char *)(msg), len)
22#define sltt_set_color(obj, name, fg, bg) \
23 SLtt_set_color(obj,(char *)(name), (char *)(fg), (char *)(bg))
24#else
25#define slsmg_printf SLsmg_printf
26#define slsmg_vprintf SLsmg_vprintf
27#define slsmg_write_nstring SLsmg_write_nstring
28#define sltt_set_color SLtt_set_color
29#endif
30
31#define SL_KEY_UNTAB 0x1000
32
33#endif /* _PERF_UI_SLANG_H_ */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _PERF_UI_SLANG_H_
3#define _PERF_UI_SLANG_H_ 1
4/*
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
7 * has on features.h.
8 */
9#include <features.h>
10#ifndef HAVE_LONG_LONG
11#define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG
12#endif
13
14/* Enable future slang's corrected function prototypes. */
15#define ENABLE_SLFUTURE_CONST 1
16#define ENABLE_SLFUTURE_VOID 1
17
18#ifdef HAVE_SLANG_INCLUDE_SUBDIR
19#include <slang/slang.h>
20#else
21#include <slang.h>
22#endif
23
24#define SL_KEY_UNTAB 0x1000
25
26#endif /* _PERF_UI_SLANG_H_ */