cosmopolitan/third_party/python/Include/pystrcmp.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

18 lines
432 B
C

#ifndef Py_STRCMP_H
#define Py_STRCMP_H
#include "third_party/python/Include/pyport.h"
COSMOPOLITAN_C_START_
int PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
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 */