1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

ifdef'd min/max functions when compiled under VC. It seems that VC already defines them.

This commit is contained in:
Virgil Dupras
2010-01-31 11:05:13 +00:00
parent 967aeecf5b
commit 962805936e
3 changed files with 12 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ static PyObject *NoBlocksError;
/* avgdiff/maxdiff has been called with 2 block lists of different size. */
static PyObject *DifferentBlockCountError;
/* It seems like MS VC defines min/max already */
#ifndef _MSC_VER
static int
max(int a, int b)
{
@@ -26,6 +28,7 @@ min(int a, int b)
{
return b < a ? b : a;
}
#endif
/* Create a tuple out of an array of integers. */
static PyObject*