mirror of
https://gitee.com/openharmony/third_party_pyyaml
synced 2024-11-26 20:00:35 +00:00
2ecaf6cedb
Signed-off-by: xuyong <xuyong59@huawei.com>
14 lines
311 B
C
14 lines
311 B
C
|
|
#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
|