From 9bed7b0cf52004ea905c09d999d9257b04fc1834 Mon Sep 17 00:00:00 2001 From: hypertensiune Date: Wed, 17 Jul 2024 17:49:15 +0300 Subject: [PATCH] Fixed redefinition --- ccloc/ccloc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ccloc/ccloc.c b/ccloc/ccloc.c index d83ffc6..670baef 100644 --- a/ccloc/ccloc.c +++ b/ccloc/ccloc.c @@ -44,7 +44,10 @@ #define MAX_FILE_DISPLAY_LEN 50 #define ARG(i, s) (strcmp(argv[i], s) == 0) -#define max(x, y) ((x) > (y) ? (x) : (y)) + +#ifndef WIN32 + #define max(x, y) ((x) > (y) ? (x) : (y)) +#endif pthread_mutex_t mutex;