diff options
author | Haruki Hasegawa <h6a.h4i.0@gmail.com> | 2016-05-05 15:29:24 +0900 |
---|---|---|
committer | Haruki Hasegawa <h6a.h4i.0@gmail.com> | 2016-05-05 15:31:50 +0900 |
commit | 1f4b9a249263e083d03138957f3cd6a293ae26e5 (patch) | |
tree | 11445c4e38aa75beb83f894e0f3ca0ef8eae2101 | |
parent | da3213cf045e0c7c4971d8b44272d1d86d689ceb (diff) | |
download | ffts-1f4b9a249263e083d03138957f3cd6a293ae26e5.zip ffts-1f4b9a249263e083d03138957f3cd6a293ae26e5.tar.gz |
Introduce ENABLE_LOG macro
-rw-r--r-- | src/ffts_internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stdio.h> +#ifdef ENABLE_LOG #ifdef __ANDROID__ #include <android/log.h> #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); |