_yaml.h 311 B

12345678910111213
  1. #include <yaml.h>
  2. #define PyUnicode_FromYamlString(s) PyUnicode_FromString((const char *)(void *)(s))
  3. #define PyBytes_AS_Yaml_STRING(s) ((yaml_char_t *)PyBytes_AS_STRING(s))
  4. #ifdef _MSC_VER /* MS Visual C++ 6.0 */
  5. #if _MSC_VER == 1200
  6. #define PyLong_FromUnsignedLongLong(z) PyInt_FromLong(i)
  7. #endif
  8. #endif