196c65f25SMaxime Henrion /*- 2*c4e20cadSPedro F. Giffuni * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3*c4e20cadSPedro F. Giffuni * 496c65f25SMaxime Henrion * Copyright (c) 2002 Maxime Henrion <[email protected]> 596c65f25SMaxime Henrion * All rights reserved. 696c65f25SMaxime Henrion * 796c65f25SMaxime Henrion * Redistribution and use in source and binary forms, with or without 896c65f25SMaxime Henrion * modification, are permitted provided that the following conditions 996c65f25SMaxime Henrion * are met: 1096c65f25SMaxime Henrion * 1. Redistributions of source code must retain the above copyright 1196c65f25SMaxime Henrion * notice, this list of conditions and the following disclaimer. 1296c65f25SMaxime Henrion * 2. Redistributions in binary form must reproduce the above copyright 1396c65f25SMaxime Henrion * notice, this list of conditions and the following disclaimer in the 1496c65f25SMaxime Henrion * documentation and/or other materials provided with the distribution. 1596c65f25SMaxime Henrion * 1696c65f25SMaxime Henrion * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1796c65f25SMaxime Henrion * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1896c65f25SMaxime Henrion * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1996c65f25SMaxime Henrion * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2096c65f25SMaxime Henrion * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2196c65f25SMaxime Henrion * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2296c65f25SMaxime Henrion * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2396c65f25SMaxime Henrion * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2496c65f25SMaxime Henrion * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2596c65f25SMaxime Henrion * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2696c65f25SMaxime Henrion * SUCH DAMAGE. 2796c65f25SMaxime Henrion * 2896c65f25SMaxime Henrion * $FreeBSD$ 2996c65f25SMaxime Henrion */ 3096c65f25SMaxime Henrion 3196c65f25SMaxime Henrion #ifndef _SYS_STDDEF_H_ 3296c65f25SMaxime Henrion #define _SYS_STDDEF_H_ 3396c65f25SMaxime Henrion 3496c65f25SMaxime Henrion #include <sys/cdefs.h> 3512eb46c8SMarcel Moolenaar #include <sys/_null.h> 3696c65f25SMaxime Henrion #include <machine/_types.h> 3796c65f25SMaxime Henrion 38d9259fbcSDavid E. O'Brien #ifndef _PTRDIFF_T_DECLARED 3996c65f25SMaxime Henrion typedef __ptrdiff_t ptrdiff_t; 40d9259fbcSDavid E. O'Brien #define _PTRDIFF_T_DECLARED 41d9259fbcSDavid E. O'Brien #endif 4296c65f25SMaxime Henrion 4396c65f25SMaxime Henrion #define offsetof(type, field) __offsetof(type, field) 4496c65f25SMaxime Henrion 4596c65f25SMaxime Henrion #endif /* !_SYS_STDDEF_H_ */ 46