]> git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/stdio_.h
Import cups.org releases
[thirdparty/cups.git] / pstoraster / stdio_.h
1 /* Copyright (C) 1992, 1993, 1994 Aladdin Enterprises. All rights reserved.
2
3 This file is part of GNU Ghostscript.
4
5 GNU Ghostscript is distributed in the hope that it will be useful, but
6 WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to
7 anyone for the consequences of using it or for whether it serves any
8 particular purpose or works at all, unless he says so in writing. Refer to
9 the GNU General Public License for full details.
10
11 Everyone is granted permission to copy, modify and redistribute GNU
12 Ghostscript, but only under the conditions described in the GNU General
13 Public License. A copy of this license is supposed to have been given to
14 you along with GNU Ghostscript so you can know your rights and
15 responsibilities. It should be in a file named COPYING. Among other
16 things, the copyright notice and this notice must be preserved on all
17 copies.
18
19 Aladdin Enterprises is not affiliated with the Free Software Foundation or
20 the GNU Project. GNU Ghostscript, as distributed by Aladdin Enterprises,
21 does not depend on any other GNU software.
22 */
23
24 /* stdio_.h */
25 /* Generic substitute for stdio.h */
26
27 /* This is here primarily because we must include std.h before */
28 /* any file that includes sys/types.h. */
29 #include "std.h"
30 #include <stdio.h>
31
32 #ifdef VMS
33 /* VMS doesn't have the unlink system call. Use delete instead. */
34 # ifdef __DECC
35 # include <unixio.h>
36 # endif
37 # define unlink(fname) delete(fname)
38 #else
39 /* Other systems may or may not declare unlink in stdio.h; */
40 /* if they do, the declaration will be compatible with this one. */
41 int unlink(P1(const char *));
42 #endif
43
44 /* Patch a couple of things possibly missing from stdio.h. */
45 #ifndef SEEK_SET
46 # define SEEK_SET 0
47 #endif
48 #ifndef SEEK_CUR
49 # define SEEK_CUR 1
50 #endif
51 #ifndef SEEK_END
52 # define SEEK_END 2
53 #endif