From ef3adb98308f14628e64b918f739e472de00cfcf Mon Sep 17 00:00:00 2001 From: Toni Date: Tue, 26 Sep 2023 23:10:57 +0200 Subject: Added printf/fprintf replacement for some internal modules. (#1974) * logging is instead redirected to `ndpi_debug_printf` Signed-off-by: lns Signed-off-by: Toni Uhlig --- src/include/ndpi_typedefs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/ndpi_typedefs.h') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 4d4d22161..690c9daf9 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -25,6 +25,9 @@ E * ndpi_typedefs.h #define __NDPI_TYPEDEFS_H__ #include "ndpi_define.h" +#ifndef NDPI_CFFI_PREPROCESSING +#include "ndpi_includes.h" +#endif #include "ndpi_protocol_ids.h" #include "ndpi_utils.h" @@ -47,6 +50,12 @@ typedef unsigned int u_int; #endif #endif +#ifdef __APPLE__ +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +#endif + /* NDPI_LOG_LEVEL */ typedef enum { NDPI_LOG_ERROR, -- cgit v1.2.3