Skip to content

Commit

Permalink
Merge pull request #24 from sg-/error-compiler-patch
Browse files Browse the repository at this point in the history
rename error.c to mbed_error.c. add toolchain.h to mbed.h exposing to…
  • Loading branch information
bogdanm committed Apr 7, 2016
2 parents ec6c385 + 034d3e9 commit 6402965
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions hal/api/mbed.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#define MBED_LIBRARY_VERSION 117

#include "toolchain.h"
#include "platform.h"

// Useful C libraries
Expand Down
4 changes: 4 additions & 0 deletions hal/api/toolchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
typedef int FILEHANDLE;
#endif

#ifndef EXTERN
#define EXTERN extern
#endif

#if defined (__ICCARM__)
# define WEAK __weak
# define PACKED __packed
Expand Down
File renamed without changes.

0 comments on commit 6402965

Please sign in to comment.