From 802f5b965a98ce0652ca0997c1c64f0bb2e76936 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 3 Sep 2008 16:56:56 +0000 Subject: [PATCH] Remove libpath from mspdatatool build info for correct linking with non-default outdir Fix a bug where a non-buffered File was passed to Parser --- Build | 1 - source/loader.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Build b/Build index 99edb31..d7e7238 100644 --- a/Build +++ b/Build @@ -25,7 +25,6 @@ package "mspdatafile" install true; build_info { - libpath "."; library "mspdatafile"; }; }; diff --git a/source/loader.h b/source/loader.h index 0c81186..2a2d141 100644 --- a/source/loader.h +++ b/source/loader.h @@ -366,7 +366,7 @@ void load(T &obj, const std::string &fn, U &arg) IO::File in(fn); IO::Buffered buf(in); - Parser parser(in, fn); + Parser parser(buf, fn); typename T::Loader loader(obj, arg); loader.load(parser); } -- 2.45.2