Skip to content

Commit b22a174

Browse files
committed
Correct semihosting check for ARMC6
1 parent 4da4c1f commit b22a174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/mbed_semihost_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern "C" {
2828

2929
#if DEVICE_SEMIHOST
3030

31-
#ifndef __CC_ARM
31+
#if !defined(__CC_ARM) && !defined(__ARMCC_VERSION)
3232

3333
#if defined(__ICCARM__)
3434
static inline int __semihost(int reason, const void *arg) {

0 commit comments

Comments
 (0)