summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-10 21:41:08 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-10 21:41:08 (GMT)
commit68933b94d38e611be987fb62e3ef25af054eec95 (patch)
treedbe16a18852ec518b3dab68ee77f473d1a98d92b /Modules
parent7bc82bb1f0ce5c841382587839c218b6cc63e1ff (diff)
downloadcpython-68933b94d38e611be987fb62e3ef25af054eec95.zip
cpython-68933b94d38e611be987fb62e3ef25af054eec95.tar.gz
cpython-68933b94d38e611be987fb62e3ef25af054eec95.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_localemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 0ea95e4..030f9d6 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -9,6 +9,8 @@ This software comes with no warranty. Use at your own risk.
******************************************************************/
+#include "Python.h"
+
#include <stdio.h>
#include <errno.h>
#include <locale.h>
@@ -16,8 +18,6 @@ This software comes with no warranty. Use at your own risk.
#include <limits.h>
#include <ctype.h>
-#include "Python.h"
-
#if defined(MS_WIN32)
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>