xref: /netbsd-src/external/gpl3/gcc/dist/gcc/config/vxworks/_yvals.h (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1 /* This file is part of GCC.
2 
3 GCC is free software; you can redistribute it and/or modify it under
4 the terms of the GNU General Public License as published by the Free
5 Software Foundation; either version 3, or (at your option) any later
6 version.
7 
8 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
9 WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11 for more details.
12 
13 Under Section 7 of GPL version 3, you are granted additional
14 permissions described in the GCC Runtime Library Exception, version
15 3.1, as published by the Free Software Foundation.
16 
17 You should have received a copy of the GNU General Public License and
18 a copy of the GCC Runtime Library Exception along with this program;
19 see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
20 <http://www.gnu.org/licenses/>.  */
21 
22 #ifndef __GCC_YVALS_H
23 #define __GCC_YVALS_H
24 
25 #include <_vxworks-versions.h>
26 
27 /* #include the VxWorks yvals.h in setups we expect it to be available.
28    It is around for both kernel mode and rtps on VxWorks >= 7, only for
29    rtps prior to that.  */
30 
31 #if _VXWORKS_MAJOR_GE(7) || defined(__RTP__)
32 
33 /* We need to deactivate the definitions tailored for the Dinkumware
34    intrinsics, incompatible with a compilation by G++.  */
35 
36 #include <yvals.h>
37 
38 #undef _HAS_CPP17
39 #define _HAS_CPP17 0
40 
41 #undef _HAS_CPP14
42 #define _HAS_CPP14 0
43 
44 #undef _HAS_CPP11
45 #define _HAS_CPP11 0
46 
47 #endif /* VxWorks MAJOR >= 7 */
48 
49 #endif /* __GCC_YVALS_H */
50