mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
This commit is contained in:
parent
8777bcae27
commit
0a8143f646
18 changed files with 394 additions and 9 deletions
23
Include/pystrcmp.h
Normal file
23
Include/pystrcmp.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef Py_STRCMP_H
|
||||
#define Py_STRCMP_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
|
||||
PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *);
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
#define PyOS_strnicmp strnicmp
|
||||
#define PyOS_stricmp stricmp
|
||||
#else
|
||||
#define PyOS_strnicmp PyOS_mystrnicmp
|
||||
#define PyOS_stricmp PyOS_mystricmp
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !Py_STRCMP_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue