mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 19:12:16 +00:00
includes moved to satisfy the "Python.h first" requirement
[SVN r27386]
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
// Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/python/module.hpp>
|
||||
#include <boost/python/def.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace { // Avoid cluttering the global namespace.
|
||||
@@ -11,8 +13,6 @@ namespace { // Avoid cluttering the global namespace.
|
||||
int square(int number) { return number * number; }
|
||||
}
|
||||
|
||||
#include <boost/python/module.hpp>
|
||||
#include <boost/python/def.hpp>
|
||||
namespace python = boost::python;
|
||||
|
||||
// Python requires an exported function called init<module-name> in every
|
||||
|
||||
Reference in New Issue
Block a user