162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _PERF_UI_SLANG_H_
362306a36Sopenharmony_ci#define _PERF_UI_SLANG_H_ 1
462306a36Sopenharmony_ci/*
562306a36Sopenharmony_ci * slang versions <= 2.0.6 have a "#if HAVE_LONG_LONG" that breaks
662306a36Sopenharmony_ci * the build if it isn't defined. Use the equivalent one that glibc
762306a36Sopenharmony_ci * has on features.h.
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci#include <features.h>
1062306a36Sopenharmony_ci#ifndef HAVE_LONG_LONG
1162306a36Sopenharmony_ci#define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG
1262306a36Sopenharmony_ci#endif
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/* Enable future slang's corrected function prototypes. */
1562306a36Sopenharmony_ci#define ENABLE_SLFUTURE_CONST 1
1662306a36Sopenharmony_ci#define ENABLE_SLFUTURE_VOID 1
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci#ifdef HAVE_SLANG_INCLUDE_SUBDIR
1962306a36Sopenharmony_ci#include <slang/slang.h>
2062306a36Sopenharmony_ci#else
2162306a36Sopenharmony_ci#include <slang.h>
2262306a36Sopenharmony_ci#endif
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#define SL_KEY_UNTAB 0x1000
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#endif /* _PERF_UI_SLANG_H_ */
27