Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68933b9

Browse files
committed
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.
1 parent 7bc82bb commit 68933b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_localemodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ This software comes with no warranty. Use at your own risk.
99
1010
******************************************************************/
1111

12+
#include "Python.h"
13+
1214
#include <stdio.h>
1315
#include <errno.h>
1416
#include <locale.h>
1517
#include <string.h>
1618
#include <limits.h>
1719
#include <ctype.h>
1820

19-
#include "Python.h"
20-
2121
#if defined(MS_WIN32)
2222
#define WINDOWS_LEAN_AND_MEAN
2323
#include <windows.h>

0 commit comments

Comments
 (0)