Compiler specific configuration
If a source code file depends on a configuration option, that, in turn, depends on a compiler, this file has to include toolchain.h. toolchain.h includes a compiler specific header file that sets the proper configuration option. Change-Id: I7c9002522a8c6d6fd945e27a450ebe46ba9d4892 Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
This commit is contained in:
parent
58accba801
commit
e82a2a36c7
6 changed files with 4 additions and 99 deletions
|
@ -41,12 +41,10 @@ utilize toolchain specific attributes and/or pragmas.
|
|||
#ifndef _TOOLCHAIN_H
|
||||
#define _TOOLCHAIN_H
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if defined(__GNUC__) || (defined(_LINKER) && defined(__GCC_LINKER_CMD__))
|
||||
#include <toolchain/gcc.h>
|
||||
#elif defined(__DCC__)
|
||||
#include <toolchain/diab.h>
|
||||
#else
|
||||
#include <toolchain/unsupported.h>
|
||||
#include <toolchain/other.h>
|
||||
#endif
|
||||
|
||||
#endif /* _TOOLCHAIN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue