From 0e5e2dc92e6b6bdd356115f861c2b35436a3cdda Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 15 Feb 2005 10:41:03 +0000 Subject: [PATCH] includes moved to satisfy the "Python.h first" requirement [SVN r27386] --- example/getting_started1.cpp | 4 ++-- example/getting_started2.cpp | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/example/getting_started1.cpp b/example/getting_started1.cpp index 697bf071..09d68103 100644 --- a/example/getting_started1.cpp +++ b/example/getting_started1.cpp @@ -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 +#include #include namespace { // Avoid cluttering the global namespace. @@ -11,8 +13,6 @@ namespace { // Avoid cluttering the global namespace. int square(int number) { return number * number; } } -#include -#include namespace python = boost::python; // Python requires an exported function called init in every diff --git a/example/getting_started2.cpp b/example/getting_started2.cpp index 6c01240d..ee8af32e 100644 --- a/example/getting_started2.cpp +++ b/example/getting_started2.cpp @@ -2,6 +2,9 @@ // Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#include +#include +#include #include #include @@ -23,10 +26,6 @@ namespace { // Avoid cluttering the global namespace. } } -#include -#include -#include - BOOST_PYTHON_MODULE(getting_started2) { using namespace boost::python;