diff --git a/MantidPlot/src/sipqti.cpp.in b/MantidPlot/src/sipqti.cpp.in
index b7661e1452641623eb1bc54378f8902f76850f3f..9fef642114ce1e1091723df1ff9144e1b346c20d 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 c72a0a422afcb44d08b6b03ba779d2fab03d0fa7..7574d01d9ba250aa3c56292978eb69d3b89b1768 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"