From e4fd6e47a323923cf320880c2dd3bb1d149c4fbe Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 9 May 2024 17:27:25 +0200 Subject: Added #ifdef for Windows builds (#2431) --- src/include/ndpi_private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index 988e26ac9..358138f70 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -467,13 +467,14 @@ struct ndpi_detection_module_struct { # ifdef WIN32 /* * Already defined in ndpi_define.h -* +*/ +#ifndef NDPI_LOG_DBG # define NDPI_LOG(mod, ...) { (void)mod; } # define NDPI_LOG_ERR(mod, ...) { (void)mod; } # define NDPI_LOG_INFO(mod, ...) { (void)mod; } # define NDPI_LOG_DBG(mod, ...) { (void)mod; } # define NDPI_LOG_DBG2(mod, ...) { (void)mod; } -*/ +#endif # else # define NDPI_LOG(proto, mod, log_level, args...) { /* printf(args); */ } # ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -- cgit v1.2.3