From b4a2b1fa2a908643aa26af3b693c42f44d92cc71 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 4 Nov 2006 17:37:35 +0000 Subject: [PATCH] Improve PCH example [SVN r35837] --- v2/example/pch/include/pch.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v2/example/pch/include/pch.hpp b/v2/example/pch/include/pch.hpp index 22df8443f..8f05cc43d 100644 --- a/v2/example/pch/include/pch.hpp +++ b/v2/example/pch/include/pch.hpp @@ -5,7 +5,15 @@ http://www.boost.org/LICENSE_1_0.txt) */ +#ifdef BOOST_BUILD_PCH_ENABLED + +#ifdef FOO2 +int bar(); +#endif + class TestClass { public: TestClass(int, int) {} }; + +#endif