2010-08-11 00:54:09 +07:00
|
|
|
#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...) \
|
2011-02-02 01:51:23 +07:00
|
|
|
SLsmg_printf((char *)(msg), ##args)
|
2010-08-11 00:54:09 +07:00
|
|
|
#define slsmg_write_nstring(msg, len) \
|
2011-02-02 01:51:23 +07:00
|
|
|
SLsmg_write_nstring((char *)(msg), len)
|
2010-08-11 00:54:09 +07:00
|
|
|
#define sltt_set_color(obj, name, fg, bg) \
|
2011-02-02 01:51:23 +07:00
|
|
|
SLtt_set_color(obj,(char *)(name), (char *)(fg), (char *)(bg))
|
2010-08-11 00:54:09 +07:00
|
|
|
#else
|
|
|
|
#define slsmg_printf SLsmg_printf
|
|
|
|
#define slsmg_write_nstring SLsmg_write_nstring
|
|
|
|
#define sltt_set_color SLtt_set_color
|
|
|
|
#endif
|
|
|
|
|
2011-10-21 01:59:15 +07:00
|
|
|
#define SL_KEY_UNTAB 0x1000
|
|
|
|
|
2010-08-11 00:54:09 +07:00
|
|
|
#endif /* _PERF_UI_SLANG_H_ */
|