]> granicus.if.org Git - python/commitdiff
Clean up compiler warning exposed by GCC's -Wall option: make sure
authorFred Drake <fdrake@acm.org>
Thu, 10 Aug 2000 21:41:08 +0000 (21:41 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 10 Aug 2000 21:41:08 +0000 (21:41 +0000)
Python.h is included before standard headers since we set _GNU_SOURCE
there.  This ensures that strdup() is prototyped.

Modules/_localemodule.c

index 0ea95e4f4d5a2ae30f0ca3bd3f89dd23e8aa61eb..030f9d6e593f0cd539bafcb4b37177889ce7a796 100644 (file)
@@ -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>