--- src/PyFastTextureUtils/pyfasttextureutils.c.old 2021-03-27 17:27:59.851176000 -0700 | |
+++ src/PyFastTextureUtils/pyfasttextureutils.c 2021-03-27 17:40:35.107339300 -0700 | |
@@ -1,6 +1,9 @@ | |
#define PY_SSIZE_T_CLEAN | |
#include <Python.h> | |
+#define min(X,Y) (((X) < (Y)) ? (X) : (Y)) | |
+#define max(X,Y) (((X) > (Y)) ? (X) : (Y)) | |
+ | |
int pyfasttextureutils_color_tuple_one_value_to_int(PyObject* tuple, int index, int* val_int) { | |
PyObject* val_obj = PyTuple_GetItem(tuple, index); | |
if (val_obj == NULL) { |