1228879Sed/*-
2228879Sed * Copyright (c) 2012 Ed Schouten <ed@FreeBSD.org>
3228879Sed * All rights reserved.
4228879Sed *
5228879Sed * Redistribution and use in source and binary forms, with or without
6228879Sed * modification, are permitted provided that the following conditions
7228879Sed * are met:
8228879Sed * 1. Redistributions of source code must retain the above copyright
9228879Sed *    notice, this list of conditions and the following disclaimer.
10228879Sed * 2. Redistributions in binary form must reproduce the above copyright
11228879Sed *    notice, this list of conditions and the following disclaimer in the
12228879Sed *    documentation and/or other materials provided with the distribution.
13228879Sed *
14228879Sed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15228879Sed * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16228879Sed * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17228879Sed * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18228879Sed * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19228879Sed * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20228879Sed * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21228879Sed * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22228879Sed * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23228879Sed * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24228879Sed * SUCH DAMAGE.
25228879Sed *
26228879Sed * $FreeBSD$
27228879Sed */
28228879Sed
29228879Sed#ifndef __alignas_is_defined
30228879Sed#define	__alignas_is_defined	1
31228879Sed
32228879Sed#if !defined(__cplusplus) || __cplusplus < 201103L
33228879Sed#include <sys/cdefs.h>
34228879Sed#define	alignas			_Alignas
35228879Sed#endif
36228879Sed
37228879Sed#endif /* !__alignas_is_defined */
38228879Sed
39228879Sed#ifndef __alignof_is_defined
40228879Sed#define	__alignof_is_defined	1
41228879Sed
42228879Sed#if !defined(__cplusplus) || __cplusplus < 201103L
43228879Sed#include <sys/cdefs.h>
44228879Sed#define	alignof			_Alignof
45228879Sed#endif
46228879Sed
47228879Sed#endif /* !__alignof_is_defined */
48