// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+#include <simgear_config.h>
+#ifndef SIMGEAR_HEADLESS
+# include <osg/Vec4>
+#endif
#include "parse_color.hxx"
#include <boost/algorithm/string/predicate.hpp>
#include <simgear/math/SGMathFwd.hxx>
#include <simgear/math/SGVec4.hxx>
-#ifndef SIMGEAR_HEADLESS
-# include <osg/Vec4>
-#endif
-
#include <string>
namespace simgear
*/
bool parseColor(std::string str, SGVec4f& result);
-#ifndef SIMGEAR_HEADLESS
+#ifdef OSG_VEC4
/**
* Parse a (CSS) color into an osg::Vec4
*