[Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.8,2.8.2.1
Fred L. Drake
python-dev@python.org
Thu, 10 Aug 2000 14:40:13 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18419
Modified Files:
Tag: cnri-16-start
_localemodule.c
Log Message:
Clean up compiler warning exposed by GCC's -Wall option: make sure
Python.h is included before standard headers since we set _GNU_SOURCE
there. This ensures that strdup() is prototyped.
Index: _localemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_localemodule.c,v
retrieving revision 2.8
retrieving revision 2.8.2.1
diff -C2 -r2.8 -r2.8.2.1
*** _localemodule.c 2000/05/03 22:30:13 2.8
--- _localemodule.c 2000/08/10 21:40:10 2.8.2.1
***************
*** 9,12 ****
--- 9,14 ----
******************************************************************/
+ #include "Python.h"
+
#include <stdio.h>
#include <errno.h>
***************
*** 15,19 ****
#include <limits.h>
#include <ctype.h>
- #include "Python.h"
#ifdef macintosh
char *strdup Py_PROTO((char *));
--- 17,20 ----