Commit 721d1fda authored by Fred Drake's avatar Fred Drake

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.
parent 69868810
...@@ -9,6 +9,8 @@ This software comes with no warranty. Use at your own risk. ...@@ -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. ...@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment