diff --git a/curses.h b/curses.h index febff898..2cde78f2 100644 --- a/curses.h +++ b/curses.h @@ -16,7 +16,7 @@ * See the file maintain.er for details of the current maintainer. **************************************************************************/ -/* $Id: curses.h,v 1.124 2006/02/08 17:57:18 wmcbrine Exp $ */ +/* $Id: curses.h,v 1.125 2006/02/13 19:44:37 wmcbrine Exp $ */ /* ---------------------------------------------------------------------- PDCurses @@ -372,6 +372,14 @@ PDCurses portable platform definitions list: # include #endif +/* If it's not DOS, or OS/2, or Windows, it must be XCurses */ + +#if !defined(DOS) && !defined(OS2) && !defined(WIN32) +# ifndef XCURSES +# define XCURSES +# endif +#endif + #include #include /* Required by X/Open usage below */ diff --git a/doc/x11.man b/doc/x11.man index 6f5c0746..08666608 100644 --- a/doc/x11.man +++ b/doc/x11.man @@ -8,9 +8,9 @@ between the curses program and the child process created to manage the X stuff. XCurses also uses sockets for communication between the processes. -When compiling your curses application, you need to add -DXCURSES, and -include the or that comes with XCurses. You also -need to link your code with the XCurses library. +When compiling your curses application, you need to include the + or that comes with XCurses. You also need to link +your code with the XCurses library. XCurses programs use the X Toolkit Intrinsics libraries. You will need to link your code with the following libraries under X11R5: @@ -313,4 +313,7 @@ The XCursesExit() function is now called automatically via atexit(). (Multiple calls to it are OK, so you don't need to remove it if you've already added it for previous versions of XCurses.) +It is no longer necessary to explicitly define XCURSES, except if +building under Cygwin. (It's defined automatically.) + **man-end**********************************************************************/