summaryrefslogtreecommitdiff
path: root/tools/perf/ui/libslang.h
blob: db816695ad970a3c990e3480787d1ebff9ec2414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _PERF_UI_SLANG_H_
#define _PERF_UI_SLANG_H_ 1
/*
 * slang versions <= 2.0.6 have a "#if HAVE_LONG_LONG" that breaks
 * the build if it isn't defined. Use the equivalent one that glibc
 * has on features.h.
 */
#include <features.h>
#ifndef HAVE_LONG_LONG
#define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG
#endif
#include <slang.h>

#if SLANG_VERSION < 20104
#define slsmg_printf(msg, args...) \
	SLsmg_printf((char *)(msg), ##args)
#define slsmg_vprintf(msg, vargs) \
	SLsmg_vprintf((char *)(msg), vargs)
#define slsmg_write_nstring(msg, len) \
	SLsmg_write_nstring((char *)(msg), len)
#define sltt_set_color(obj, name, fg, bg) \
	SLtt_set_color(obj,(char *)(name), (char *)(fg), (char *)(bg))
#else
#define slsmg_printf SLsmg_printf
#define slsmg_vprintf SLsmg_vprintf
#define slsmg_write_nstring SLsmg_write_nstring
#define sltt_set_color SLtt_set_color
#endif

#define SL_KEY_UNTAB 0x1000

#endif /* _PERF_UI_SLANG_H_ */
on' href='/cgit.cgi/linux/net-next.git/plain/sound/pci/emu10k1/emu10k1_patch.c?id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>plain -rw-r--r--emu10k1_synth.c3161logplain -rw-r--r--emu10k1_synth_local.h1535logplain -rw-r--r--emu10k1x.c48876logplain -rw-r--r--emufx.c101572logplain -rw-r--r--emumixer.c68824logplain -rw-r--r--emumpu401.c11428logplain -rw-r--r--emupcm.c58692logplain -rw-r--r--emuproc.c21057logplain -rw-r--r--io.c16190logplain -rw-r--r--irq.c6754logplain -rw-r--r--memory.c16163logplain -rw-r--r--p16v.c29109logplain -rw-r--r--p16v.h14922logplain