From 1aba6ffe17a7a8999c8e4e2cd69c321d3b15ec48 Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Fri, 23 Oct 2015 17:37:45 +0100
Subject: [PATCH] Allow MantidPlot to be compiled against the non-debug Python
 library

---
 MantidPlot/src/sipqti.cpp.in        | 6 ++++++
 MantidQt/Python/sip_mantidqt.cpp.in | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/MantidPlot/src/sipqti.cpp.in b/MantidPlot/src/sipqti.cpp.in
index b7661e14526..9fef642114c 100644
--- a/MantidPlot/src/sipqti.cpp.in
+++ b/MantidPlot/src/sipqti.cpp.in
@@ -4,4 +4,10 @@
 // with '#pragma GCC system_header' but that pragma only works if it occurs
 // in a file that has been included with '#include'
 //------------------------------------------------------------------------------
+//  This file serves as a wrapper around <Python.h> which allows it to be
+//  compiled with GCC 2.95.2 under Win32 and which disables the default MSVC
+//  behavior so that a program may be compiled in debug mode without requiring a
+//  special debugging build of the Python library.
+#include <boost/python/detail/wrap_python.hpp>
+
 #include "sip_qtipart0.cpp"
diff --git a/MantidQt/Python/sip_mantidqt.cpp.in b/MantidQt/Python/sip_mantidqt.cpp.in
index c72a0a422af..7574d01d9ba 100644
--- a/MantidQt/Python/sip_mantidqt.cpp.in
+++ b/MantidQt/Python/sip_mantidqt.cpp.in
@@ -4,4 +4,10 @@
 // with '#pragma GCC system_header' but that pragma only works if it occurs
 // in a file that has been included with '#include'
 //-------------------------------------------------------------------------------------
+//  This file serves as a wrapper around <Python.h> which allows it to be
+//  compiled with GCC 2.95.2 under Win32 and which disables the default MSVC
+//  behavior so that a program may be compiled in debug mode without requiring a
+//  special debugging build of the Python library.
+#include <boost/python/detail/wrap_python.hpp>
+
 #include "sipmantidqtpythonpart0.cpp"
-- 
GitLab