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

Skip to content

Commit 7cf1fcf

Browse files
committed
Always include config.h
1 parent 1e61249 commit 7cf1fcf

12 files changed

Lines changed: 0 additions & 25 deletions

File tree

Include/allobjects.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2828

2929
/* Include nearly all Python header files */
3030

31-
#ifdef HAVE_CONFIG_H
3231
#include "config.h"
33-
#endif
3432

3533
/* config.h may or may not define DL_IMPORT */
3634
#ifndef DL_IMPORT /* declarations for DLL import/export */

Include/pgenheaders.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3030

3131
/* Include files and extern declarations used by most of the parser. */
3232

33-
#ifdef HAVE_CONFIG_H
3433
#include "config.h"
35-
#endif
3634

3735
/* config.h may or may not define DL_IMPORT */
3836
#ifndef DL_IMPORT /* declarations for DLL import/export */

Modules/md5c.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ These notices must be retained in any copies of any part of this
2323
documentation and/or software.
2424
*/
2525

26-
#ifdef HAVE_CONFIG_H
2726
#include "config.h"
28-
#endif
2927
#include "md5.h"
3028

3129
/* Constants for MD5Transform routine.

Modules/regexpr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ from GNU regexp.
2424
2525
*/
2626

27-
#ifdef HAVE_CONFIG_H
2827
#include "config.h" /* For Win* specific redefinition of printf c.s. */
29-
#endif
3028

3129
#include "myproto.h" /* For PROTO macro --Guido */
3230

Parser/intrcheck.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2424

2525
/* Check for interrupts */
2626

27-
#ifdef HAVE_CONFIG_H
2827
#include "config.h"
29-
#endif
30-
3128
#include "myproto.h"
3229
#include "intrcheck.h"
3330

Parser/myreadline.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3232
- a malloc'ed string ending in \n normally
3333
*/
3434

35-
#ifdef HAVE_CONFIG_H
3635
#include "config.h"
37-
#endif
3836

3937
#include <stdio.h>
4038
#include <string.h>

Python/atof.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2727
and is slow and inaccurate.
2828
But it's good enough for the occasional string literal... */
2929

30-
#ifdef HAVE_CONFIG_H
3130
#include "config.h"
32-
#endif
3331

3432
#include <ctype.h>
3533

Python/fmod.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2424

2525
/* Portable fmod(x, y) implementation for systems that don't have it */
2626

27-
#ifdef HAVE_CONFIG_H
2827
#include "config.h"
29-
#endif
3028

3129
#include "mymath.h"
3230
#include <errno.h>

Python/getmtime.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626

2727
/* (A separate file because this may be OS dependent) */
2828

29-
#ifdef HAVE_CONFIG_H
3029
#include "config.h"
31-
#endif
3230

3331
#include <sys/types.h>
3432
#include <sys/stat.h>

Python/mystrtoul.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2222
2323
******************************************************************/
2424

25-
#ifdef HAVE_CONFIG_H
2625
#include "config.h"
27-
#endif
2826

2927
/* Convert a possibly signed character to a nonnegative int */
3028
/* XXX This assumes characters are 8 bits wide */

0 commit comments

Comments
 (0)