We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acbf352 + e61aff6 commit 2ceb3bfCopy full SHA for 2ceb3bf
platform/include/platform/mbed_retarget.h
@@ -37,7 +37,7 @@
37
#endif
38
#include <errno.h>
39
40
-#if !defined(__ARMCC_VERSION)
+#if !defined(__ARMCC_VERSION) && defined(__GNUC__)
41
#include <fcntl.h>
42
43
@@ -468,9 +468,16 @@ typedef struct DIR_impl DIR;
468
#ifndef ELIBEXEC
469
#define ELIBEXEC 83 /* Cannot exec a shared library directly */
470
471
+
472
+#if defined ( __ICCARM__ )
473
+#undef EILSEQ /* defined in IAR arm/inc/c/errno.h: #define EILSEQ 36 */
474
+#define EILSEQ 84 /* Illegal byte sequence */
475
+#else
476
#ifndef EILSEQ
477
#define EILSEQ 84 /* Illegal byte sequence */
478
479
+#endif
480
481
#ifndef ERESTART
482
#define ERESTART 285 /* Interrupted system call should be restarted */
483
0 commit comments