aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_classify.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-12-14 15:05:47 +0100
committerLuca Deri <deri@ntop.org>2019-12-14 15:05:47 +0100
commit14e5adc7c2bd56cdc9d0e0e3d2e5f469945a7997 (patch)
tree8f66b192a2511ddbe4a008a88f03b0786b5cac0a /src/lib/ndpi_classify.c
parent81012b32017e818fc9597ce40c0c63eaf8908666 (diff)
Win fixes
Diffstat (limited to 'src/lib/ndpi_classify.c')
-rw-r--r--src/lib/ndpi_classify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ndpi_classify.c b/src/lib/ndpi_classify.c
index ad2aee32a..e323b2a98 100644
--- a/src/lib/ndpi_classify.c
+++ b/src/lib/ndpi_classify.c
@@ -42,13 +42,10 @@
*/
#define _GNU_SOURCE
-#ifdef HAVE_CONFIG_H
-#include "ndpi_config.h"
-#endif
#include <stdio.h>
#include <ctype.h>
-#include <sys/time.h>
+// #include <sys/time.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
@@ -56,10 +53,13 @@
#include "ndpi_classify.h"
/** finds the minimum value between to inputs */
+#ifndef min
#define min(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })
+#endif
+
//bias (1) + w (207)
//const float ndpi_parameters_splt[NUM_PARAMETERS_SPLT_LOGREG] = {