summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorilovezfs <ilovezfs@icloud.com>2016-08-10 07:35:20 -0700
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-08-10 21:43:34 +0300
commit4e36dd570ba039a5d9af7b181eb5a4b8f6f921de (patch)
treead9108be365316f86ee8d5bcb9d10c85c31cc007
parent5e01fb01b3b04bc86e0c1f14063b3f956ed58661 (diff)
downloadmicropython-4e36dd570ba039a5d9af7b181eb5a4b8f6f921de.tar.gz
micropython-4e36dd570ba039a5d9af7b181eb5a4b8f6f921de.zip
unix/mpconfigport.h: Don't include stdio.h on MacOS.
Fixes build errors such as "../lib/utils/printf.c:43:5: error: expected parameter declarator"
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index c449e7316f..86b6001d5b 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -305,5 +305,7 @@ void mp_unix_mark_exec(void);
#define _DIRENT_HAVE_D_INO (1)
#endif
+#ifndef __APPLE__
// For debugging purposes, make printf() available to any source file.
#include <stdio.h>
+#endif