2021-08-08 04:08:33 +00:00
|
|
|
#ifndef Py_STRCMP_H
|
|
|
|
#define Py_STRCMP_H
|
2021-08-12 07:42:14 +00:00
|
|
|
#include "third_party/python/Include/pyport.h"
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
/* clang-format off */
|
2021-08-08 04:08:33 +00:00
|
|
|
|
2021-08-12 07:42:14 +00:00
|
|
|
int PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
|
|
|
|
int PyOS_mystricmp(const char *, const char *);
|
2021-08-08 04:08:33 +00:00
|
|
|
|
|
|
|
#ifdef MS_WINDOWS
|
|
|
|
#define PyOS_strnicmp strnicmp
|
|
|
|
#define PyOS_stricmp stricmp
|
|
|
|
#else
|
|
|
|
#define PyOS_strnicmp PyOS_mystrnicmp
|
|
|
|
#define PyOS_stricmp PyOS_mystricmp
|
|
|
|
#endif
|
|
|
|
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif /* !Py_STRCMP_H */
|