[Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.50,2.51

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 10 Apr 2001 12:53:40 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16226

Modified Files:
	_cursesmodule.c 
Log Message:
Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.

Michael Hudson suggested this fox for the Tru64 problem (SF bug
232597).  It looks reasonable, it works on Tru64, and it doesn't beak
anything on Linux, so I say go for it.


Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.50
retrieving revision 2.51
diff -C2 -r2.50 -r2.51
*** _cursesmodule.c	2001/01/29 20:47:59	2.50
--- _cursesmodule.c	2001/04/10 19:53:37	2.51
***************
*** 101,106 ****
  
  #include "Python.h"
- #define CURSES_MODULE
- #include "py_curses.h"
  
  #ifdef __osf__
--- 101,104 ----
***************
*** 108,111 ****
--- 106,112 ----
  #define STRICT_SYSV_CURSES      /* Don't use ncurses extensions */
  #endif
+ 
+ #define CURSES_MODULE
+ #include "py_curses.h"
  
  /*  These prototypes are in <term.h>, but including this header