From 1f4b9a249263e083d03138957f3cd6a293ae26e5 Mon Sep 17 00:00:00 2001 From: Haruki Hasegawa Date: Thu, 5 May 2016 15:29:24 +0900 Subject: Introduce ENABLE_LOG macro --- src/ffts_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ffts_internal.h b/src/ffts_internal.h index 7ae8789..6b88b35 100644 --- a/src/ffts_internal.h +++ b/src/ffts_internal.h @@ -54,12 +54,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +#ifdef ENABLE_LOG #ifdef __ANDROID__ #include #define LOG(s) __android_log_print(ANDROID_LOG_ERROR, "FFTS", s) #else #define LOG(s) fprintf(stderr, s) #endif +#else +#define LOG(s) +#endif struct _ffts_plan_t; typedef void (*transform_func_t)(struct _ffts_plan_t *p, const void *in, void *out); -- cgit v1.1