From 354e688d8ebf78d34577db4b45388dede4954b8d Mon Sep 17 00:00:00 2001 From: pohmelie Date: Mon, 7 Dec 2015 15:35:48 +0300 Subject: py: Add MICROPY_PY_BUILTINS_MIN_MAX, disable for minimal ports. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 4d81f25d3f..c05f33c453 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -610,6 +610,11 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (0) #endif +// Whether to support min/max functions +#ifndef MICROPY_PY_BUILTINS_MIN_MAX +#define MICROPY_PY_BUILTINS_MIN_MAX (1) +#endif + // Whether to set __file__ for imported modules #ifndef MICROPY_PY___FILE__ #define MICROPY_PY___FILE__ (1) -- cgit v1.2.3