2 * This file has been modified for the cdrkit suite.
4 * The behaviour and appearence of the program code below can differ to a major
5 * extent from the version distributed by the original author(s).
7 * For details, see Changelog file distributed with the cdrkit package. If you
8 * received this file from another source then ask the distributing person for
9 * a log of modifications.
13 /* @(#)standard.h 1.31 03/08/23 Copyright 1985 J. Schilling */
15 * standard definitions
17 * This file should be included past:
19 * mconfig.h / config.h
21 * stdlib.h (better use stdxlib.h)
22 * unistd.h (better use unixstd.h) needed LARGEFILE support
24 * If you need stdio.h, you must include it before standard.h
26 * Copyright (c) 1985 J. Schilling
29 * This program is free software; you can redistribute it and/or modify
30 * it under the terms of the GNU General Public License version 2
31 * as published by the Free Software Foundation.
33 * This program is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License for more details.
38 * You should have received a copy of the GNU General Public License along with
39 * this program; see the file COPYING. If not, write to the Free Software
40 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
60 * fundamental constants
76 * standard storage class definitions
95 #endif /* PROTOTYPES */
98 * standard type definitions
100 * The hidden Schily BOOL definition is used in case we need to deal
101 * with other BOOL defines on systems we like to port to.
119 #if defined(_INCL_SYS_TYPES_H) || defined(off_t)
124 #if defined(_INCL_SYS_TYPES_H) || defined(size_t)
125 # ifndef FOUND_SIZE_T
126 # define FOUND_SIZE_T
132 * It turns out that we cannot use the folloginw definition because there are
133 * some platforms that do not behave application friendly. These are mainly
134 * BSD-4.4 based systems (which #undef a definition when size_t is available.
135 * We actually removed this code because of a problem with QNX Neutrino.
136 * For this reason, it is important not to include <sys/types.h> directly but
137 * via the Schily SING include files so we know whether it has been included
138 * before we come here.
140 #if defined(_SIZE_T) || defined(_T_SIZE_) || defined(_T_SIZE) || \
141 defined(__SIZE_T) || defined(_SIZE_T_) || \
142 defined(_GCC_SIZE_T) || defined(_SIZET_) || \
143 defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t)
146 # define FOUND_SIZE_T /* We already included a size_t definition */
149 #endif /* __never_def__ */
151 #if defined(_JOS) || defined(JOS)
157 # include <jos_defs.h>
165 #endif /* _STANDARD_H */