Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-21 05:00:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-21 05:02:38 +0300
commit32be51dc66ae0e791970c8b7326afa16d60aa267 (patch)
treebc3c59d9b70f453e06917a3f47e6a6b9791df96f /source/blender/blenlib/intern/sort.c
parent6f224941408eda8930489fa440af9539a92badad (diff)
Cleanup: warnings (msvc)
Part of patch D1670 by @LazyDodo
Diffstat (limited to 'source/blender/blenlib/intern/sort.c')
-rw-r--r--source/blender/blenlib/intern/sort.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/sort.c b/source/blender/blenlib/intern/sort.c
index c5922feb0ed..190c874e1b5 100644
--- a/source/blender/blenlib/intern/sort.c
+++ b/source/blender/blenlib/intern/sort.c
@@ -40,6 +40,10 @@
#include "BLI_sort.h"
+#ifdef min /* for msvc */
+# undef min
+#endif
+
/* note: modified to use glibc arg order for callback */
/* **** qsort based on FreeBSD source (libkern\qsort.c) **** */
BLI_INLINE char *med3(char *, char *, char *, BLI_sort_cmp_t, void *);