pystrcmp.h 436 B

1234567891011121314151617181920212223
  1. #ifndef Py_STRCMP_H
  2. #define Py_STRCMP_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
  7. PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *);
  8. #ifdef MS_WINDOWS
  9. #define PyOS_strnicmp strnicmp
  10. #define PyOS_stricmp stricmp
  11. #else
  12. #define PyOS_strnicmp PyOS_mystrnicmp
  13. #define PyOS_stricmp PyOS_mystricmp
  14. #endif
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* !Py_STRCMP_H */