diff options
Diffstat (limited to 'libs/pbd/tlsf.cc')
-rw-r--r-- | libs/pbd/tlsf.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/pbd/tlsf.cc b/libs/pbd/tlsf.cc index 40c5864c41..3fe8674f0f 100644 --- a/libs/pbd/tlsf.cc +++ b/libs/pbd/tlsf.cc @@ -52,8 +52,10 @@ //#define TLSF_STATISTIC 1 #ifndef USE_PRINTF +#if TLSF_STATISTIC #define USE_PRINTF (1) #endif +#endif #include <assert.h> #include <stdlib.h> @@ -138,9 +140,11 @@ # define ERROR_MSG(fmt, args...) printf(fmt, ## args) #else # if !defined(PRINT_MSG) -# define PRINT_MSG(fmt, args...) +# if TLSF_STATISTIC +# define PRINT_MSG(fmt, args...) +# endif # endif -# if !defined(ERROR_MSG) +# if !defined(ERROR_MSG) && !defined(COMPILER_MSVC) # define ERROR_MSG(fmt, args...) # endif #endif |