Skip to content

Commit 8fb26ed

Browse files
committed
Make it return a _const_ char*.
1 parent f6ca6aa commit 8fb26ed

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Python/getcompiler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
5151

5252
#endif /* !COMPILER */
5353

54-
char *
54+
const char *
5555
Py_GetCompiler()
5656
{
5757
return COMPILER;

Python/getplatform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PERFORMANCE OF THIS SOFTWARE.
3535
#define PLATFORM "unknown"
3636
#endif
3737

38-
char *
38+
const char *
3939
Py_GetPlatform()
4040
{
4141
return PLATFORM;

Python/getversion.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ PERFORMANCE OF THIS SOFTWARE.
3535

3636
#include "patchlevel.h"
3737

38-
extern const char *Py_GetCompiler();
39-
extern const char *Py_GetBuildInfo();
40-
4138
const char *
4239
Py_GetVersion()
4340
{

0 commit comments

Comments
 (0)