From bf19586c53d1473255f87ea651bd40a6435d89d3 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sat, 20 Dec 2014 20:45:01 +0200
Subject: [PATCH] stmhal: Include MICROPY_HAL_H only if defined.

Helps other ports.
---
 stmhal/pyexec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index d62b2a373..00cd95362 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -42,7 +42,9 @@
 #include "repl.h"
 #include "gc.h"
 #include "gccollect.h"
+#ifdef MICROPY_HAL_H
 #include MICROPY_HAL_H
+#endif
 #include "systick.h"
 #include "readline.h"
 #include "pyexec.h"
-- 
GitLab