In the EMX section of curses.h, "__OS2__" is defined, since (as the
comment says) it's not defined by EMX. However, the _new_ (gcc 3.2.1)
version of EMX _does_ define it, resulting in a warning when curses.h is
included. The trivial attached patch makes it work without warnings for
either the old or new versions of EMX.

-- 
William McBrine <[EMAIL PROTECTED]>
*** curses.h.old        Tue Jun  3 14:49:07 2003
--- curses.h    Tue Jun  3 15:29:48 2003
***************
*** 408,414 ****
  #  ifndef HAVE_PROTO
  #    define HAVE_PROTO 1            /* emx supports ANSI C prototypes  */
  #  endif
! #  define __OS2__                      /* EMX does not define this :-( */
  #  define OS2 3                     /* Major release of OS/2 supported */
  #  define CURSES__32BIT__
  #  ifndef HAVE_STDARG_H
--- 408,416 ----
  #  ifndef HAVE_PROTO
  #    define HAVE_PROTO 1            /* emx supports ANSI C prototypes  */
  #  endif
! #  ifndef __OS2__
! #    define __OS2__                    /* EMX does not define this :-( */
! #  endif
  #  define OS2 3                     /* Major release of OS/2 supported */
  #  define CURSES__32BIT__
  #  ifndef HAVE_STDARG_H

Reply via email to