diff --git a/py/mpconfig.h b/py/mpconfig.h
index 13af4c62bd92c0545f57934ed61e3064318aa135..afd9a0be5eed5546f23a8be379ab5a5fa82a8931 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -490,11 +490,6 @@
 #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
 #endif
 
-// Support for calls to pow() with 3 integer arguments
-#ifndef MICROPY_PY_BUILTINS_POW3
-#define MICROPY_PY_BUILTINS_POW3 (0)
-#endif
-
 #if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG
 typedef long long mp_longint_impl_t;
 #endif
@@ -764,6 +759,11 @@ typedef double mp_float_t;
 #define MICROPY_PY_BUILTINS_MIN_MAX (1)
 #endif
 
+// Support for calls to pow() with 3 integer arguments
+#ifndef MICROPY_PY_BUILTINS_POW3
+#define MICROPY_PY_BUILTINS_POW3 (0)
+#endif
+
 // Whether to provide the help function
 #ifndef MICROPY_PY_BUILTINS_HELP
 #define MICROPY_PY_BUILTINS_HELP (0)