Skip to content

Commit 2cc36cf

Browse files
committed
Declare flac function in correct scope
1 parent 07d26de commit 2cc36cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/G3Timestream.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ template <class A> void G3Timestream::save(A &ar, unsigned v) const
265265
#endif
266266
}
267267

268+
#ifdef G3_HAS_FLAC
268269
template <typename T>
269270
std::vector<T> *
270271
unpack_flac(const std::vector<int32_t> &buf, uint8_t nanflag, const std::vector<bool> &nanbuf)
@@ -289,6 +290,7 @@ unpack_flac(const std::vector<int32_t> &buf, uint8_t nanflag, const std::vector<
289290

290291
return data;
291292
}
293+
#endif
292294

293295
template <class A> void G3Timestream::load(A &ar, unsigned v)
294296
{

0 commit comments

Comments
 (0)