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

Skip to content

Commit f57c170

Browse files
committed
Remove #ifdef __cplusplus.
1 parent ff8c9da commit f57c170

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

PC/config.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#ifndef Py_CONFIG_H
22
#define Py_CONFIG_H
3-
#ifdef __cplusplus
4-
extern "C" {
5-
#endif
63

74
/* config.h. NOT Generated automatically by configure.
85
@@ -106,6 +103,9 @@ typedef int pid_t;
106103
/* Windows 3.1 will not tolerate any console io in a dll */
107104
#ifdef _USRDLL
108105
#include <time.h>
106+
#ifdef __cplusplus
107+
extern "C" {
108+
#endif
109109
#define stdin ((FILE *)0)
110110
#define stdout ((FILE *)1)
111111
#define stderr ((FILE *)2)
@@ -125,6 +125,9 @@ clock_t clock();
125125
void _exit(int);
126126
void exit(int);
127127
int sscanf(const char *, const char *, ...);
128+
#ifdef __cplusplus
129+
}
130+
#endif
128131
#endif /* _USRDLL */
129132
#ifndef NETSCAPE_PI
130133
/* use sockets, but not in a Netscape dll */
@@ -465,7 +468,4 @@ typedef int pid_t;
465468

466469
/* Define if you have the thread library (-lthread). */
467470
/* #undef HAVE_LIBTHREAD */
468-
#ifdef __cplusplus
469-
}
470-
#endif
471471
#endif /* !Py_CONFIG_H */

0 commit comments

Comments
 (0)