cmCursesStandardIncludes.h 698 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef cmCursesStandardIncludes_h
  2. #define cmCursesStandardIncludes_h
  3. #if defined(__sun__) && defined(__GNUC__)
  4. #define _MSE_INT_H
  5. #endif
  6. #if defined(__hpux)
  7. #define _BOOL_DEFINED
  8. #include <sys/time.h>
  9. #define _XOPEN_SOURCE_EXTENDED
  10. #include <curses.h>
  11. #include <form.h>
  12. #undef _XOPEN_SOURCE_EXTENDED
  13. #else
  14. #include <curses.h>
  15. #include <form.h>
  16. #endif
  17. #ifndef getmaxyx
  18. #define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w))
  19. #endif
  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. #undef move
  27. #undef erase
  28. #undef clear
  29. #endif // cmCursesStandardIncludes_h