2 |
- |
1 |
/* Copyright (C) 1993, 1998, 1999 Aladdin Enterprises. 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: windows_.h,v 1.7 2004/08/31 19:23:14 alexcher Exp $ */
|
|
|
18 |
/* Wrapper for windows.h */
|
|
|
19 |
|
|
|
20 |
#ifndef windows__INCLUDED
|
|
|
21 |
# define windows__INCLUDED
|
|
|
22 |
|
|
|
23 |
#define STRICT
|
|
|
24 |
#include <windows.h>
|
|
|
25 |
|
|
|
26 |
#ifdef __WATCOMC__
|
|
|
27 |
typedef RGBQUAD FAR * LPRGBQUAD;
|
|
|
28 |
/* Watcom's _beginthread takes an extra stack_bottom argument. */
|
|
|
29 |
# define BEGIN_THREAD(proc, stksize, data)\
|
|
|
30 |
_beginthread(proc, NULL, stksize, data)
|
|
|
31 |
#else
|
|
|
32 |
# define BEGIN_THREAD(proc, stksize, data)\
|
|
|
33 |
_beginthread(proc, stksize, data)
|
|
|
34 |
/* Define null equivalents of the Watcom 32-to-16-bit glue. */
|
|
|
35 |
# define AllocAlias16(ptr) ((DWORD)(ptr))
|
|
|
36 |
# define FreeAlias16(dword) /* */
|
|
|
37 |
# define MK_FP16(fp32) ((DWORD)(fp32))
|
|
|
38 |
# define MK_FP32(fp16) (fp16)
|
|
|
39 |
# define GetProc16(proc, ptype) (proc)
|
|
|
40 |
# define ReleaseProc16(cbp) /* */
|
|
|
41 |
#endif
|
|
|
42 |
|
|
|
43 |
/* Substitute for special "far" library procedures under Win32. */
|
|
|
44 |
#ifdef __WIN32__
|
|
|
45 |
# undef _fstrtok
|
|
|
46 |
# define _fstrtok(str, set) strtok(str, set)
|
|
|
47 |
#endif
|
|
|
48 |
|
|
|
49 |
#if defined(__BORLANDC__)
|
|
|
50 |
# define exception_code() __exception_code
|
|
|
51 |
#endif
|
|
|
52 |
|
|
|
53 |
#endif /* windows__INCLUDED */
|