Utils/Console: Fix classic spirit include warnings
[senf.git] / senf / Utils / Phoenix.hh
index 773bc5a..40fcd96 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2008 
+// Copyright (C) 2008
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
 // Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 #define HH_SENF_Utils_Phoenix_ 1
 
 // Custom includes
-#include <boost/spirit/phoenix/functions.hpp>
+#include <senf/config.hh>
+
+#if HAVE_BOOST_SPIRIT_INCLUDE_CLASSIC_HPP
+#  include <boost/spirit/include/phoenix1_functions.hpp>
+#else
+#  include <boost/spirit/phoenix/functions.hpp>
+#endif
 
 //#include "Phoenix.mpp"
 #include "Phoenix.ih"
@@ -37,7 +43,7 @@
 
 namespace senf {
 namespace phoenix {
-    
+
     /** \brief \c push_back phoenix functor
 
         <tt>push_back(c, x) := c.push_back(x)</tt>