Skip to content

Commit

Permalink
FIX: prevent warning C4005: 'min': macro redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Nov 1, 2017
1 parent 1a05697 commit e5e4190
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/f-qsort.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ typedef int cmp_t(const void *, const void *);
static __inline__ char *med3(char *, char *, char *, cmp_t *, void *);
static __inline__ void swapfunc(char *, char *, int, int);

#if !defined(min)
#define min(a, b) (a) < (b) ? a : b
#endif

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

0 comments on commit e5e4190

Please sign in to comment.