libslang.h 630 B

1234567891011121314151617181920212223242526
  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. /* Enable future slang's corrected function prototypes. */
  14. #define ENABLE_SLFUTURE_CONST 1
  15. #define ENABLE_SLFUTURE_VOID 1
  16. #ifdef HAVE_SLANG_INCLUDE_SUBDIR
  17. #include <slang/slang.h>
  18. #else
  19. #include <slang.h>
  20. #endif
  21. #define SL_KEY_UNTAB 0x1000
  22. #endif /* _PERF_UI_SLANG_H_ */