xref: /plan9/sys/src/cmd/gs/src/macsystypes.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1994-7 artofcode LLC.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: macsystypes.h,v 1.8 2003/01/25 22:50:31 giles Exp $ */
18 
19 #ifndef __sys_types_h__
20 #define __sys_types_h__
21 
22 #include <MacTypes.h>
23 #include <unix.h>
24 #define CHECK_INTERRUPTS
25 
26 /* use a 64 bit type for color vectors. (from MacTypes.h)
27    this is important for devicen support, but can be safely
28    undef'd to fallback to a 32 bit representation  */
29 #define GX_COLOR_INDEX_TYPE UInt64
30 
31 #define main gs_main
32 
33 #if (0)
34 #define fprintf myfprintf
35 #define fputs myfputs
36 #define getenv mygetenv
37 int myfprintf(FILE *file, const char *fmt, ...);
38 int myfputs(const char *string, FILE *file);
39 #endif
40 
41 /* Metrowerks CodeWarrior should define this */
42 #ifndef __MACOS__
43 #define __MACOS__
44 #endif
45 
46 #endif /* __sys_types_h__ */
47