VSF Documented
msc51_compiler_detect.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __MSC51_COMPILER_DETECT_H__
19#define __MSC51_COMPILER_DETECT_H__
20
23
25#ifdef __IS_COMPILER_IAR__
26# undef __IS_COMPILER_IAR__
27#endif
28#if defined(__IAR_SYSTEMS_ICC__)
29# define __IS_COMPILER_IAR__ 1
30#endif
31
32
34#ifdef __IS_COMPILER_51_KEIL__
35# undef __IS_COMPILER_51_KEIL__
36#endif
37#if defined(__C51__) || defined(__CX51__)
38# define __IS_COMPILER_51_KEIL__ 1
39#endif
41
42#endif /* __USE_MCS51_COMPILER_H_PART_1__ */
43
44#endif // __MSC51_COMPILER_DETECT_H__