Skip to content

Commit

Permalink
Refs #10977. Undefine macros defined by poco
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsteve committed Jan 27, 2015
1 parent 3eab1df commit 8a53dae
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 3 deletions.
Expand Up @@ -10,6 +10,13 @@
#include "MantidKernel/Logger.h"
#include "MantidKernel/Matrix.h"
#include "MantidKernel/V3D.h"
// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"
#include <climits> // Needed for g++4.4 on Mac with OpenCASCADE 6.3.0
#include <cmath>
Expand Down
Expand Up @@ -3,6 +3,13 @@
#include "MantidGeometry/IObjComponent.h"
#include "MantidKernel/V3D.h"
#include "MantidKernel/Quat.h"
// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"
#include <climits>

Expand Down
7 changes: 7 additions & 0 deletions Code/Mantid/Framework/LiveData/src/ISISHistoDataListener.cpp
Expand Up @@ -11,6 +11,13 @@
#include "MantidKernel/UnitFactory.h"
#include "MantidKernel/ArrayProperty.h"
#include "MantidKernel/ArrayBoundedValidator.h"
// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"
#include "MantidGeometry/Instrument.h"

Expand Down
Expand Up @@ -9,6 +9,13 @@

#include "MantidKernel/DateAndTime.h"
#include "MantidKernel/TimeSeriesProperty.h"
// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"
#include "MantidKernel/UnitFactory.h"

Expand Down
10 changes: 9 additions & 1 deletion Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp
Expand Up @@ -5,14 +5,22 @@
#include "MantidKernel/ThreadPool.h"
#include "MantidKernel/ThreadScheduler.h"
#include "MantidKernel/ThreadSchedulerMutexes.h"
#include "MantidKernel/WarningSuppressions.h"
#include "MantidMDEvents/MDBox.h"
#include "MantidMDEvents/MDEvent.h"
#include "MantidMDEvents/MDGridBox.h"
#include <boost/math/special_functions/round.hpp>
#include <ostream>
#include "MantidKernel/Strings.h"

// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"

using namespace Mantid;
using namespace Mantid::Kernel;
using namespace Mantid::API;
Expand Down
@@ -1,7 +1,6 @@
#include "MantidAPI/AlgorithmFactory.h"
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/FileLoaderRegistry.h"
#include "MantidKernel/WarningSuppressions.h"
#include "MantidPythonInterface/kernel/PythonObjectInstantiator.h"

#include <boost/python/class.hpp>
Expand All @@ -13,6 +12,15 @@
// include of Python.h which it ensures is done correctly
#include <frameobject.h>

// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"

using namespace Mantid::API;
using namespace boost::python;
using Mantid::Kernel::AbstractInstantiator;
Expand Down
@@ -1,6 +1,5 @@
#include "MantidAPI/FunctionFactory.h"
#include "MantidAPI/IFunction.h"
#include "MantidKernel/WarningSuppressions.h"
#include "MantidPythonInterface/kernel/PythonObjectInstantiator.h"
#include "MantidPythonInterface/api/PythonAlgorithm/AlgorithmAdapter.h"

Expand All @@ -11,6 +10,15 @@
// include of Python.h which it ensures is done correctly
#include <frameobject.h>

// the following were previously defined in Poco/Platform_POSIX.h
#ifdef GCC_DIAG_ON
#undef GCC_DIAG_ON
#endif
#ifdef GCC_DIAG_OFF
#undef GCC_DIAG_OFF
#endif
#include "MantidKernel/WarningSuppressions.h"

using Mantid::API::FunctionFactoryImpl;
using Mantid::API::FunctionFactory;
using Mantid::API::IFunction;
Expand Down

0 comments on commit 8a53dae

Please sign in to comment.