Skip to content

Commit 9834c71

Browse files
committed
Fix build on windows
1 parent 30cc04b commit 9834c71

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

thirdparty/bungee_library/upstream/src/Resample.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212

1313
namespace Bungee::Resample {
1414

15+
#if defined(__GNUC__) || defined(__clang__)
16+
#define BUNGEE_NOINLINE __attribute__((noinline))
17+
#else
18+
#define BUNGEE_NOINLINE
19+
#endif
20+
1521
// To resample from external buffer at input sample rate to internal buffer at (Fourier transformed) sample rate
1622
class Input;
1723

@@ -158,7 +164,7 @@ template <class Interpolation, class Mode>
158164
struct Loop
159165
{
160166
template <bool ratioIsConstant>
161-
static __attribute__((noinline)) void run(RatioState<ratioIsConstant> &ratioState, Internal &internal, External external) // const & ext
167+
static BUNGEE_NOINLINE void run(RatioState<ratioIsConstant> &ratioState, Internal &internal, External external) // const & ext
162168
{
163169
const Assert::FloatingPointExceptions floatingPointExceptions(FE_INEXACT | FE_UNDERFLOW);
164170

0 commit comments

Comments
 (0)