cmCursesStandardIncludes.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #if defined(__sun__) && defined(__GNUC__)
  13. #define _MSE_INT_H
  14. #endif
  15. #if defined(__hpux)
  16. # define _BOOL_DEFINED
  17. # include <sys/time.h>
  18. #endif
  19. #include <form.h>
  20. // on some machines move erase and clear conflict with stl
  21. // so remove them from the namespace
  22. inline void curses_move(unsigned int x, unsigned int y)
  23. {
  24. move(x,y);
  25. }
  26. inline void curses_clear()
  27. {
  28. erase();
  29. clearok(stdscr, TRUE);
  30. }
  31. #undef move
  32. #undef erase
  33. #undef clear
  34. #endif // cmCursesStandardIncludes_h