From: Diane Trout Date: Fri, 7 Apr 2006 21:23:44 +0000 (+0000) Subject: make include gl.h multiplatform X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=commitdiff_plain;h=459f621b6c5a10b7c8c1b168864fed744aafda4b;p=mussa.git make include gl.h multiplatform On OSX the location of gl.h is a bit weird. Also fix a problem with where our example data ends up being dumped when running unittests --- diff --git a/alg/glsequence.hpp b/alg/glsequence.hpp index b9a84f9..4e992f3 100644 --- a/alg/glsequence.hpp +++ b/alg/glsequence.hpp @@ -4,7 +4,13 @@ #include "alg/annotation_colors.hpp" #include "alg/sequence.hpp" #include "alg/color.hpp" -#include +// isn't it lovely how the header file can live in different places? +#ifdef __APPLE__ +#include +#else +#include +#endif + //! Manage rendering a mussa sequence track /*! The idea is this will keep track of the location of where the sequence * is being rendered, and handle displaying annotations on that track diff --git a/alg/test/test_mussa.cpp b/alg/test/test_mussa.cpp index 04886a0..da17b22 100644 --- a/alg/test/test_mussa.cpp +++ b/alg/test/test_mussa.cpp @@ -116,7 +116,7 @@ BOOST_AUTO_TEST_CASE( mussa_load_analysis ) m1.analyze(0, 0); Mussa m2; - m2.load( example_dir / "mck3test_w30_t20"); + m2.load( fs::initial_path() / "mck3test_w30_t20"); BOOST_CHECK_EQUAL( m1.size(), m2.size() ); BOOST_CHECK_EQUAL( m1.get_window(), m2.get_window() ); diff --git a/qui/seqbrowser/SequenceBrowser.hpp b/qui/seqbrowser/SequenceBrowser.hpp index 85910bc..219d9d4 100644 --- a/qui/seqbrowser/SequenceBrowser.hpp +++ b/qui/seqbrowser/SequenceBrowser.hpp @@ -5,7 +5,6 @@ #include #include #include -#include #include