1*367bebd4SEd Schouten /*- 2*367bebd4SEd Schouten * Copyright (c) 2012 Ed Schouten <ed@FreeBSD.org> 3*367bebd4SEd Schouten * All rights reserved. 4*367bebd4SEd Schouten * 5*367bebd4SEd Schouten * Redistribution and use in source and binary forms, with or without 6*367bebd4SEd Schouten * modification, are permitted provided that the following conditions 7*367bebd4SEd Schouten * are met: 8*367bebd4SEd Schouten * 1. Redistributions of source code must retain the above copyright 9*367bebd4SEd Schouten * notice, this list of conditions and the following disclaimer. 10*367bebd4SEd Schouten * 2. Redistributions in binary form must reproduce the above copyright 11*367bebd4SEd Schouten * notice, this list of conditions and the following disclaimer in the 12*367bebd4SEd Schouten * documentation and/or other materials provided with the distribution. 13*367bebd4SEd Schouten * 14*367bebd4SEd Schouten * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*367bebd4SEd Schouten * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*367bebd4SEd Schouten * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*367bebd4SEd Schouten * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*367bebd4SEd Schouten * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*367bebd4SEd Schouten * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*367bebd4SEd Schouten * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*367bebd4SEd Schouten * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*367bebd4SEd Schouten * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*367bebd4SEd Schouten * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*367bebd4SEd Schouten * SUCH DAMAGE. 25*367bebd4SEd Schouten * 26*367bebd4SEd Schouten * $FreeBSD$ 27*367bebd4SEd Schouten */ 28*367bebd4SEd Schouten 29*367bebd4SEd Schouten #ifndef __alignas_is_defined 30*367bebd4SEd Schouten #define __alignas_is_defined 1 31*367bebd4SEd Schouten 32*367bebd4SEd Schouten #if !defined(__cplusplus) || __cplusplus < 201103L 33*367bebd4SEd Schouten #include <sys/cdefs.h> 34*367bebd4SEd Schouten #define alignas _Alignas 35*367bebd4SEd Schouten #endif 36*367bebd4SEd Schouten 37*367bebd4SEd Schouten #endif /* !__alignas_is_defined */ 38*367bebd4SEd Schouten 39*367bebd4SEd Schouten #ifndef __alignof_is_defined 40*367bebd4SEd Schouten #define __alignof_is_defined 1 41*367bebd4SEd Schouten 42*367bebd4SEd Schouten #if !defined(__cplusplus) || __cplusplus < 201103L 43*367bebd4SEd Schouten #include <sys/cdefs.h> 44*367bebd4SEd Schouten #define alignof _Alignof 45*367bebd4SEd Schouten #endif 46*367bebd4SEd Schouten 47*367bebd4SEd Schouten #endif /* !__alignof_is_defined */ 48