xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/ginclude/stdalign.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
1*8feb0f0bSmrg /* Copyright (C) 2011-2020 Free Software Foundation, Inc.
236ac495dSmrg 
336ac495dSmrg This file is part of GCC.
436ac495dSmrg 
536ac495dSmrg GCC is free software; you can redistribute it and/or modify
636ac495dSmrg it under the terms of the GNU General Public License as published by
736ac495dSmrg the Free Software Foundation; either version 3, or (at your option)
836ac495dSmrg any later version.
936ac495dSmrg 
1036ac495dSmrg GCC is distributed in the hope that it will be useful,
1136ac495dSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of
1236ac495dSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1336ac495dSmrg GNU General Public License for more details.
1436ac495dSmrg 
1536ac495dSmrg Under Section 7 of GPL version 3, you are granted additional
1636ac495dSmrg permissions described in the GCC Runtime Library Exception, version
1736ac495dSmrg 3.1, as published by the Free Software Foundation.
1836ac495dSmrg 
1936ac495dSmrg You should have received a copy of the GNU General Public License and
2036ac495dSmrg a copy of the GCC Runtime Library Exception along with this program;
2136ac495dSmrg see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2236ac495dSmrg <http://www.gnu.org/licenses/>.  */
2336ac495dSmrg 
2436ac495dSmrg /* ISO C1X: 7.15 Alignment <stdalign.h>.  */
2536ac495dSmrg 
2636ac495dSmrg #ifndef _STDALIGN_H
2736ac495dSmrg #define _STDALIGN_H
2836ac495dSmrg 
2936ac495dSmrg #ifndef __cplusplus
3036ac495dSmrg 
3136ac495dSmrg #define alignas _Alignas
3236ac495dSmrg #define alignof _Alignof
3336ac495dSmrg 
3436ac495dSmrg #define __alignas_is_defined 1
3536ac495dSmrg #define __alignof_is_defined 1
3636ac495dSmrg 
3736ac495dSmrg #endif
3836ac495dSmrg 
3936ac495dSmrg #endif	/* stdalign.h */
40