Skip to content

Commit 48fd7d7

Browse files
c1728p9theotherjimmy
authored andcommitted
Compatibility changes
Make changes to improve compatibility: -Include toolchain.h inside mbed.h -define EXTERN
1 parent e690ec0 commit 48fd7d7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hal/api/mbed.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#define MBED_LIBRARY_VERSION 121
2020

21+
#include "toolchain.h"
2122
#include "platform.h"
2223

2324
// Useful C libraries

hal/api/toolchain.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ typedef int FILEHANDLE;
3232
# define PACKED __attribute__((packed))
3333
#endif
3434

35+
// Backwards compatibility
36+
#ifndef EXTERN
37+
#define EXTERN extern
38+
#endif
39+
3540
#endif

0 commit comments

Comments
 (0)