X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fcurses.priv.h;h=281bb4b700fcfbc5b63517e76167ad501be75a20;hp=2a7b8b7a6b27d1e265f20f7989fb89c5034ca950;hb=2403eaecbe5b488358485a3deb351ab552af8791;hpb=4ceb04b5e19df8964f98c7675d9448c205a2053e diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index 2a7b8b7a..281bb4b7 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -34,7 +34,7 @@ ****************************************************************************/ /* - * $Id: curses.priv.h,v 1.521 2013/01/12 21:53:35 tom Exp $ + * $Id: curses.priv.h,v 1.523 2013/01/26 21:51:56 tom Exp $ * * curses.priv.h * @@ -86,6 +86,12 @@ extern "C" { #include +#if defined __hpux +# ifndef EILSEQ +# define EILSEQ 47 +# endif +#endif + #ifndef PATH_MAX # if defined(_POSIX_PATH_MAX) # define PATH_MAX _POSIX_PATH_MAX @@ -184,6 +190,17 @@ extern int errno; extern NCURSES_EXPORT(int) _nc_env_access (void); #endif +/* + * Not all platforms have memmove; some have an equivalent bcopy. (Some may + * have neither). + */ +#if USE_OK_BCOPY +#define memmove(d,s,n) bcopy(s,d,n) +#elif USE_MY_MEMMOVE +#define memmove(d,s,n) _nc_memmove(d,s,n) +extern NCURSES_EXPORT(void *) _nc_memmove (void *, const void *, size_t); +#endif + /* * If we have va_copy(), use it for assigning va_list's. */