From 72a64192b8c31d9dd10a09bbd9cfaf7cd2767bec Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Mon, 23 Aug 2010 18:03:34 +0000 Subject: [PATCH] Unittests: make them compile again in builds with regular boost. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@799 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/BoostWorkaround/boost/format.hpp | 2 +- test/unit/utNoBoostTest.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/BoostWorkaround/boost/format.hpp b/code/BoostWorkaround/boost/format.hpp index 83c164cd3..b453a356f 100644 --- a/code/BoostWorkaround/boost/format.hpp +++ b/code/BoostWorkaround/boost/format.hpp @@ -9,7 +9,7 @@ #ifndef AI_BOOST_FORMAT_DUMMY_INCLUDED #define AI_BOOST_FORMAT_DUMMY_INCLUDED -#ifndef BOOST_FORMAT_HPP +#if (!defined BOOST_FORMAT_HPP) || (defined ASSIMP_FORCE_NOBOOST) #include #include diff --git a/test/unit/utNoBoostTest.h b/test/unit/utNoBoostTest.h index 4b492e8a1..5fe3ceabd 100644 --- a/test/unit/utNoBoostTest.h +++ b/test/unit/utNoBoostTest.h @@ -3,6 +3,7 @@ namespace noboost { +#define ASSIMP_FORCE_NOBOOST #include "..\..\code\BoostWorkaround\boost\format.hpp" using boost::format; using boost::str;