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.
This commit is contained in:
Fred Drake 2000-08-10 21:41:08 +00:00
parent 7bc82bb1f0
commit 68933b94d3
1 changed files with 2 additions and 2 deletions

View File

@ -9,6 +9,8 @@ This software comes with no warranty. Use at your own risk.
******************************************************************/ ******************************************************************/
#include "Python.h"
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <locale.h> #include <locale.h>
@ -16,8 +18,6 @@ This software comes with no warranty. Use at your own risk.
#include <limits.h> #include <limits.h>
#include <ctype.h> #include <ctype.h>
#include "Python.h"
#if defined(MS_WIN32) #if defined(MS_WIN32)
#define WINDOWS_LEAN_AND_MEAN #define WINDOWS_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>