cmCursesStandardIncludes.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCursesStandardIncludes_h
  11. #define cmCursesStandardIncludes_h
  12. #include "../cmStandardIncludes.h"
  13. #if defined(__sun__) && defined(__GNUC__)
  14. #define _MSE_INT_H
  15. #endif
  16. #if defined(__hpux)
  17. #define _BOOL_DEFINED
  18. #include <sys/time.h>
  19. #endif
  20. #include <form.h>
  21. // on some machines move erase and clear conflict with stl
  22. // so remove them from the namespace
  23. inline void curses_move(unsigned int x, unsigned int y)
  24. {
  25. move(x, y);
  26. }
  27. inline void curses_clear()
  28. {
  29. erase();
  30. clearok(stdscr, TRUE);
  31. }
  32. #undef move
  33. #undef erase
  34. #undef clear
  35. #endif // cmCursesStandardIncludes_h