Changeset 1056 for trunk/src/emx/include/stddef.h
- Timestamp:
- Jan 25, 2004, 7:33:03 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/stddef.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1055 r1056 1 /* stddef.h (emx+gcc) */ 1 /*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software 14 * must display the following acknowledgement: 15 * This product includes software developed by the University of 16 * California, Berkeley and its contributors. 17 * 4. Neither the name of the University nor the names of its contributors 18 * may be used to endorse or promote products derived from this software 19 * without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)stddef.h 8.1 (Berkeley) 6/2/93 34 * 35 * $FreeBSD: src/include/stddef.h,v 1.9 2002/09/01 17:57:20 mike Exp $ 36 */ 2 37 3 #ifndef _STDDEF_H 4 #define _STDDEF_H 38 /** @file 39 * FreeBSD 5.1 40 * @changed bird: EMXifications. 41 */ 5 42 6 #if defined (__cplusplus) 7 extern "C" { 8 #endif 43 #ifndef _STDDEF_H_ 44 #define _STDDEF_H_ 9 45 10 #if !defined (_PTRDIFF_T) 11 #define _PTRDIFF_T 12 typedef long ptrdiff_t; 13 #endif 46 #include <sys/cdefs.h> 47 #include <sys/_types.h> 14 48 15 #if !defined (_SIZE_T) 16 #define _SIZE_T 17 typedef unsigned long size_t; 18 #endif 49 typedef __ptrdiff_t ptrdiff_t; 19 50 20 #if !defined (_WCHAR_T) && !defined (__cplusplus) 21 #define _WCHAR_T 22 typedef unsigned short wchar_t; 23 #endif 24 25 #if !defined (NULL) 26 #if defined (__cplusplus) 27 #define NULL 0 28 #else 29 #define NULL ((void *)0) 51 #if __BSD_VISIBLE 52 #ifndef _RUNE_T_DECLARED 53 typedef __rune_t rune_t; 54 #define _RUNE_T_DECLARED 30 55 #endif 31 56 #endif 32 57 33 #define offsetof(type, member) ((size_t)&((type *)0)->member) 58 #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */ 59 typedef __size_t size_t; 60 #define _SIZE_T_DECLARED 61 #define _SIZE_T /* bird: emx */ 62 #endif 63 64 #ifndef __cplusplus 65 #if !define(_WCHAR_T_DECLARED) && !defined(_SIZE_T) 66 typedef __wchar_t wchar_t; 67 #define _WCHAR_T_DECLARED 68 #define _WCHAR_T /* bird: emx */ 69 #endif 70 #endif 71 72 #ifndef NULL 73 #define NULL 0 74 #endif 75 76 #define offsetof(type, member) __offsetof(type, member) 34 77 35 78 79 /* bird: EMX - start */ 80 #define _PTRDIFF_T 36 81 #if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) \ 37 82 || defined (_WITH_UNDERSCORE) 38 39 83 unsigned *__threadid (void); 40 84 #define _threadid (__threadid ()) 41 85 42 86 #endif 87 /* bird: EMX - end */ 43 88 44 #if defined (__cplusplus) 45 } 46 #endif 47 48 #endif /* not _STDDEF_H */ 89 #endif /* _STDDEF_H_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.