Skip to content
Snippets Groups Projects
Commit 5e2c8a57 authored by patacongo's avatar patacongo
Browse files

Add support for non-GCC compiler

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@12 42af7a65-404d-4744-a932-0658087f49c3
parent 469b933b
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,18 @@
* Definitions
************************************************************/
#define weak_alias(name, aliasname) \
extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
#define weak_function __attribute__ ((weak))
#define weak_const_function __attribute__ ((weak, __const__))
#ifdef __GNUC__
# define weak_alias(name, aliasname) \
extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
# define weak_function __attribute__ ((weak))
# define weak_const_function __attribute__ ((weak, __const__))
# define noreturn_function
#else
# define weak_alias(name, aliasname)
# define weak_function
# define weak_const_function
# define noreturn_function
#endif
/************************************************************
* Global Function Prototypes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment