[Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.14,2.15
Fred L. Drake
python-dev@python.org
Thu, 10 Aug 2000 14:41:11 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18487
Modified Files:
_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.14
retrieving revision 2.15
diff -C2 -r2.14 -r2.15
*** _localemodule.c 2000/08/03 02:06:15 2.14
--- _localemodule.c 2000/08/10 21:41:08 2.15
***************
*** 10,13 ****
--- 10,15 ----
******************************************************************/
+ #include "Python.h"
+
#include <stdio.h>
#include <errno.h>
***************
*** 16,21 ****
#include <limits.h>
#include <ctype.h>
-
- #include "Python.h"
#if defined(MS_WIN32)
--- 18,21 ----