aix_init_module.hpp 740 B

1234567891011121314151617181920212223242526
  1. // Copyright David Abrahams 2002.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef AIX_INIT_MODULE_DWA2002529_HPP
  6. # define AIX_INIT_MODULE_DWA2002529_HPP
  7. # ifdef _AIX
  8. # include <boost/python/detail/prefix.hpp>
  9. # include <cstdio>
  10. # ifdef __KCC
  11. # include <iostream> // this works around a problem in KCC 4.0f
  12. # endif
  13. namespace boost { namespace python { namespace detail {
  14. extern "C"
  15. {
  16. typedef PyObject* (*so_load_function)(char*,char*,FILE*);
  17. }
  18. void aix_init_module(so_load_function, char const* name, void (*init_module)());
  19. }}} // namespace boost::python::detail
  20. # endif
  21. #endif // AIX_INIT_MODULE_DWA2002529_HPP