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

@@ -10,6 +10,8 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
/* It seems like MS VC defines min/max already */
#ifndef _MSC_VER
static int
max(int a, int b)
{
@@ -21,6 +23,7 @@ min(int a, int b)
{
return b < a ? b : a;
}
#endif
static PyObject*
getblock(PyObject *image)