cmCursesStandardIncludes.h 672 B

1234567891011121314151617181920212223242526272829303132
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCursesStandardIncludes_h
  4. #define cmCursesStandardIncludes_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #if defined(__hpux)
  7. #define _BOOL_DEFINED
  8. #include <sys/time.h>
  9. #endif
  10. #include <form.h>
  11. // on some machines move erase and clear conflict with stl
  12. // so remove them from the namespace
  13. inline void curses_move(unsigned int x, unsigned int y)
  14. {
  15. move(x, y);
  16. }
  17. inline void curses_clear()
  18. {
  19. erase();
  20. clearok(stdscr, TRUE);
  21. }
  22. #undef move
  23. #undef erase
  24. #undef clear
  25. #endif // cmCursesStandardIncludes_h