2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00

Spirit: merging from trunk upto rev. 61489

[SVN r63640]
This commit is contained in:
Hartmut Kaiser
2010-07-04 22:38:38 +00:00
parent 63a3f188b8
commit e13ebcd0e8
2 changed files with 5 additions and 5 deletions

View File

@@ -61,11 +61,11 @@ void exec_test()
// Register the module with the interpreter
if (PyImport_AppendInittab(const_cast<char*>("embedded_hello"),
#if PY_VERSION_HEX >= 0x03000000
PyInit_embedded_hello
PyInit_embedded_hello
#else
initembedded_hello
initembedded_hello
#endif
) == -1)
) == -1)
throw std::runtime_error("Failed to add embedded_hello to the interpreter's "
"builtin modules");
// Retrieve the main module