Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / ui / libslang.h
blob1dff3020e9d5ef573ceeece3f7095fbb2dd9443c
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
14 /* Enable future slang's corrected function prototypes. */
15 #define ENABLE_SLFUTURE_CONST 1
16 #define ENABLE_SLFUTURE_VOID 1
18 #ifdef HAVE_SLANG_INCLUDE_SUBDIR
19 #include <slang/slang.h>
20 #else
21 #include <slang.h>
22 #endif
24 #define SL_KEY_UNTAB 0x1000
26 #endif /* _PERF_UI_SLANG_H_ */