summaryrefslogtreecommitdiff
path: root/include/python2.7/pystrcmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/python2.7/pystrcmp.h')
-rw-r--r--include/python2.7/pystrcmp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/python2.7/pystrcmp.h b/include/python2.7/pystrcmp.h
new file mode 100644
index 0000000..369c7e7
--- /dev/null
+++ b/include/python2.7/pystrcmp.h
@@ -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 *);
+
+#if defined(MS_WINDOWS) || defined(PYOS_OS2)
+#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 */