aboutsummaryrefslogtreecommitdiff
path: root/yaml/_yaml.h
diff options
context:
space:
mode:
Diffstat (limited to 'yaml/_yaml.h')
-rw-r--r--yaml/_yaml.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/yaml/_yaml.h b/yaml/_yaml.h
new file mode 100644
index 0000000..e3984c4
--- /dev/null
+++ b/yaml/_yaml.h
@@ -0,0 +1,13 @@
+
+#include <yaml.h>
+
+#define PyUnicode_FromYamlString(s) PyUnicode_FromString((const char *)(void *)(s))
+#define PyBytes_AS_Yaml_STRING(s) ((yaml_char_t *)PyBytes_AS_STRING(s))
+
+#ifdef _MSC_VER /* MS Visual C++ 6.0 */
+#if _MSC_VER == 1200
+
+#define PyLong_FromUnsignedLongLong(z) PyInt_FromLong(i)
+
+#endif
+#endif