From 5c652cdc956772c5c0ab0a1c8382d09fc23f0fa2 Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Mon, 3 Apr 2023 22:00:36 +0200 Subject: [PATCH] Make the sqrt_internal macro customisable --- src/arduinoFFT.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/arduinoFFT.h b/src/arduinoFFT.h index a8dbeb8..cb968ff 100644 --- a/src/arduinoFFT.h +++ b/src/arduinoFFT.h @@ -50,7 +50,9 @@ #ifdef FFT_SQRT_APPROXIMATION #include #else - #define sqrt_internal sqrt + #ifndef sqrt_internal + #define sqrt_internal sqrt + #endif #endif enum class FFTDirection