mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
ifdef'd min/max functions when compiled under VC. It seems that VC already defines them.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user