summaryrefslogtreecommitdiffstatshomepage
path: root/py/modcmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/modcmath.c')
-rw-r--r--py/modcmath.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/py/modcmath.c b/py/modcmath.c
index 7514a8c029..59fa76ee68 100644
--- a/py/modcmath.c
+++ b/py/modcmath.c
@@ -24,16 +24,12 @@
* THE SOFTWARE.
*/
-#include <math.h>
-
-#include "mpconfig.h"
-#include "misc.h"
-#include "qstr.h"
-#include "obj.h"
-#include "builtin.h"
+#include "py/builtin.h"
#if MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_CMATH
+#include <math.h>
+
/// \module cmath - mathematical functions for complex numbers
///
/// The `cmath` module provides some basic mathematical funtions for