Skip to content

Commit 38ca4bd

Browse files
0xc0170Martin Kojtal
authored andcommitted
semihosting: add compat header where is required
ARMCC provides __semihost via compat header. As CMSIS 5.8.0 removed this compat header, we need to explicitly include it to fix definition missing error.
1 parent 8bdec2b commit 38ca4bd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

platform/source/LocalFileSystem.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
#if defined(__ARMCC_VERSION)
18+
#include <arm_compat.h>
19+
#endif
20+
1721
#include "platform/LocalFileSystem.h"
1822

1923
#if DEVICE_LOCALFILESYSTEM

platform/source/mbed_semihost_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
#if defined(__ARMCC_VERSION)
18+
#include <arm_compat.h>
19+
#endif
20+
1721
#include "cmsis.h"
1822
#include "platform/mbed_semihost_api.h"
1923

0 commit comments

Comments
 (0)