mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
d26d7ae0e4
Building o//third_party/python now takes 5 seconds on my PC This change works towards modifying Python to use runtime dispatching when appropriate. For example, when loading the magnums in the socket module, it's a good idea to check if the magnum is zero, because that means the local system platform doesn't support it.
18 lines
432 B
C
18 lines
432 B
C
#ifndef Py_STRCMP_H
|
|
#define Py_STRCMP_H
|
|
COSMOPOLITAN_C_START_
|
|
/* clang-format off */
|
|
|
|
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
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !Py_STRCMP_H */
|