summaryrefslogtreecommitdiffstats
path: root/Include/pystrcmp.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-18 23:22:54 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-18 23:22:54 (GMT)
commit0a8143f6462b491d3f12bfb899efd6e044e350be (patch)
tree855410e5c18dace91bbbb310b5660a40fb5f1eb6 /Include/pystrcmp.h
parent8777bcae2749099b6ea3ac35f079bfa3df470a78 (diff)
downloadcpython-0a8143f6462b491d3f12bfb899efd6e044e350be.zip
cpython-0a8143f6462b491d3f12bfb899efd6e044e350be.tar.gz
cpython-0a8143f6462b491d3f12bfb899efd6e044e350be.tar.bz2
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
Diffstat (limited to 'Include/pystrcmp.h')
-rw-r--r--Include/pystrcmp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Include/pystrcmp.h b/Include/pystrcmp.h
new file mode 100644
index 0000000..edb1239
--- /dev/null
+++ b/Include/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 *);
+
+#ifdef MS_WINDOWS
+#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 */