Skip to content

Commit e5e4190

Browse files
committed
FIX: prevent warning C4005: 'min': macro redefinition
1 parent 1a05697 commit e5e4190

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/f-qsort.c

+2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ typedef int cmp_t(const void *, const void *);
5858
static __inline__ char *med3(char *, char *, char *, cmp_t *, void *);
5959
static __inline__ void swapfunc(char *, char *, int, int);
6060

61+
#if !defined(min)
6162
#define min(a, b) (a) < (b) ? a : b
63+
#endif
6264

6365
/*
6466
* Qsort routine from Bentley & McIlroy's "Engineering a Sort Function".

0 commit comments

Comments
 (0)