Added #ifdef for Windows builds (#2431)

This commit is contained in:
Luca Deri
2024-05-09 17:27:25 +02:00
committed by GitHub
parent 2e7fc82e55
commit e4fd6e47a3
+3 -2
View File
@@ -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