1 /* 2 * Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * @file compiler.h 9 * @brief Compiler specific primitives for libmetal. 10 */ 11 12 #ifndef __METAL_COMPILER__H__ 13 #define __METAL_COMPILER__H__ 14 15 #if defined(__GNUC__) 16 # include <metal/compiler/gcc/compiler.h> 17 #elif defined(__ICCARM__) 18 # include <metal/compiler/iar/compiler.h> 19 #elif defined (__CC_ARM) 20 # error "MDK-ARM ARMCC compiler requires the GNU extentions to work correctly" 21 #else 22 # error "Missing compiler support" 23 #endif 24 25 #endif /* __METAL_COMPILER__H__ */ 26